• Resolved Jenish Shrestha

    (@jenish11)


    Hi,

    I was wondering, if we could save acf json file in a plugin and load the json file when the plugin gets activated and automatically all the custom fields gets assigned to their respective custom post type.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback! Yes absolutely, you can use the ACF Extended Json AutoSync PHP filters to save/load json files into a custom folder. See documentation.

    Hope it helps!

    Have a nice day!

    Regards.

    Thread Starter Jenish Shrestha

    (@jenish11)

    Can this be done with acf blocks as well?

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    You can register ACF Block Types using the acf_register_block_type() function (See documentation).

    If you register it in your plugin, then it will be available only when it is activated. Note that you can also register Field Groups in PHP, in a similar way using acf_add_local_field_group(). See documentation.

    Block Types registered in PHP will work with Field Groups registered in the DB, Json or PHP.

    Hope it helps!

    Have a nice day!

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘About json load’ is closed to new replies.