Skip to content

Instantly share code, notes, and snippets.

@brentjett
Last active August 29, 2015 14:03
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 brentjett/e6f6ef33a571d458c0d4 to your computer and use it in GitHub Desktop.
Save brentjett/e6f6ef33a571d458c0d4 to your computer and use it in GitHub Desktop.
Create an ACF (Advanced Custom Fields) Options Page
<?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