Last active
November 9, 2016 13:05
-
-
Save moskalukigor/42bbfd33c43427dcdea31ceb897096e1 to your computer and use it in GitHub Desktop.
Register ACF Option
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' => 'Theme General Settings', | |
'menu_title' => 'Theme Settings', | |
'menu_slug' => 'theme-general-settings', | |
'capability' => 'edit_posts', | |
'redirect' => false | |
)); | |
acf_add_options_sub_page(array( | |
'page_title' => 'Theme Header Settings', | |
'menu_title' => 'Header', | |
'parent_slug' => 'theme-general-settings', | |
)); | |
acf_add_options_sub_page(array( | |
'page_title' => 'Theme Footer Settings', | |
'menu_title' => 'Footer', | |
'parent_slug' => 'theme-general-settings', | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment