Home Forums Add-ons Options Page check if option page excists


check if option page excists

  • Hello,

    Is there a way to check if an option page with a name already exist excists? And if it exist, create a sub option page to it?

  • You would need to make sure that you create the page after the other one might be created. How you would do this depends on when the other one is created.

    // returns an array of options pages
    // array contains arrays of options page settings
    $pages = acf_get_options_pages();
  • Hello John.
    That did the trick. Thank you!

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

You must be logged in to reply to this topic.