Created
May 19, 2016 18:21
-
-
Save machouinard/b122ec850b67518ffe0cf2a2e1e7f83e to your computer and use it in GitHub Desktop.
Add ACF settings page under existing custom menu item.
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
/** | |
* Add ACF settings page under Cooked CPT Menu | |
*/ | |
if ( function_exists( 'acf_add_options_sub_page' ) ){ | |
acf_add_options_sub_page(array( | |
'title' => 'Custom Recipe Settings', | |
'parent' => 'edit.php?post_type=cp_recipe', | |
'capability' => 'manage_options' | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment