Skip to content

Instantly share code, notes, and snippets.

@tessak22
Created October 5, 2018 21:07
Show Gist options
  • Save tessak22/6a6c93782c294913b24b10dde3d61710 to your computer and use it in GitHub Desktop.
Save tessak22/6a6c93782c294913b24b10dde3d61710 to your computer and use it in GitHub Desktop.
Options Page for Theme Settings with ACF
/**
* Add ACF Options for Theme Settings
*/
if( function_exists('acf_add_options_page') ) {
acf_add_options_page(array(
'page_title' => 'Theme Settings',
'menu_title' => 'Theme Settings',
'menu_slug' => 'theme-general-settings',
'capability' => 'edit_posts',
'redirect' => false
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment