Home Forums ACF PRO Theme AND plugin integration


Theme AND plugin integration

  • Hi

    I successfully use the ACF Pro plugin as an options framework for my premium theme. Now I had an idea to code a plugin for further features which people can purchase as an addon.

    My question is: Is it possible to add another sub-page to the options page just by activating this plugin? If so, how? Do I need to implement ACF there again?

    My first attempts haven’t been successful.

    Thanks in advance,

  • You need to add the options page during init. This insures that the acf function exists before you try to create the options page.

    add_action('init', 'add_my_options_page');
    function add_my_options_page() {
        // code to add options page here
  • Works like a charm, thx!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Theme AND plugin integration’ is closed to new replies.