-
-
Save josephfusco/0f0ee9f89ea6743f2bab to your computer and use it in GitHub Desktop.
Add to functions.php in order to fix missing options page error in ACF PRO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( function_exists('acf_add_options_page') ) { | |
acf_add_options_page(array( | |
'page_title' => 'Options', | |
'menu_title' => 'Options', | |
'menu_slug' => 'options', | |
'capability' => 'edit_posts', | |
'redirect' => false | |
)); | |
acf_add_options_sub_page(array( | |
'page_title' => 'Page 1', | |
'menu_title' => 'Page 1', | |
'parent_slug' => 'options', | |
)); | |
acf_add_options_sub_page(array( | |
'page_title' => 'Page 2', | |
'menu_title' => 'Page 2', | |
'parent_slug' => 'options', | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment