Last active
August 29, 2015 14:03
-
-
Save brentjett/e6f6ef33a571d458c0d4 to your computer and use it in GitHub Desktop.
Create an ACF (Advanced Custom Fields) Options Page
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
<?php | |
/* | |
In the global scope | |
*/ | |
if(function_exists('acf_add_options_sub_page')) { | |
acf_add_options_sub_page(array( | |
'title' => 'Nourish-mint Options', | |
'parent' => 'themes.php' /* Name of Admin file to parent or path to custom plugin page */ | |
)); | |
} | |
/* | |
Once declared, you can add field groups to the page on the Custom Fields page. This requires either the Options Pages add-on plugin to ACF or the new ACF v5 (beta) | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment