Skip to content

Instantly share code, notes, and snippets.

@akmur
Forked from josephfusco/functions.php
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akmur/f4e4d33940ceb83cec0b to your computer and use it in GitHub Desktop.
Save akmur/f4e4d33940ceb83cec0b to your computer and use it in GitHub Desktop.
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