Created
October 7, 2021 01:39
-
-
Save strsar/5df37d048be1d29942ffbf3c5fcb7afa to your computer and use it in GitHub Desktop.
[WP] Build ACF options page...
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
| <?php defined('ABSPATH') or header('Location: /'); | |
| /** | |
| * Additional option pages | |
| * | |
| * @uses Advanced Custom Fields | |
| * @see https://www.advancedcustomfields.com/resources/get-values-from-an-options-page/ | |
| */ | |
| if(function_exists('acf_add_options_page')) { | |
| acf_add_options_sub_page(array( | |
| 'page_title' => 'Additional Options', | |
| 'menu_title' => 'Options', | |
| 'menu_slug' => 'options', | |
| 'parent_slug' => 'options-general.php', | |
| 'capability' => 'edit_theme_options', | |
| //'redirect' => false | |
| )); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment