Skip to content

Instantly share code, notes, and snippets.

@josephfusco
Created October 22, 2014 17:36
Show Gist options
  • Save josephfusco/0f0ee9f89ea6743f2bab to your computer and use it in GitHub Desktop.
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
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