Last active
March 6, 2018 21:45
-
-
Save zachakbar/448f62f1fe5bdf9dc2ce7c736c11fb71 to your computer and use it in GitHub Desktop.
Add custom options page to WordPress with ACF.
This file contains hidden or 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' => 'PAGE_TITLE', | |
'menu_title' => 'MENU_TITLE', | |
'menu_slug' => 'PAGE_SLUG', | |
'capability' => 'edit_posts', | |
'redirect' => false, | |
'parent_slug' => 'options-general.php' | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment