Last active
July 8, 2016 21:09
-
-
Save bohnna/74578f952172bb0ad805ab55e52f4518 to your computer and use it in GitHub Desktop.
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
// The whole idea is to set the parent_slug to 'edit.php?post_type=cpt-name | |
// Everything else you can customize as you need to. | |
// Replace {posttype} with your post type name. (Without the brackets of course) | |
${posttype}_options_page = acf_add_options_page(array( | |
'page_title' => '{posttype} Options', | |
'menu_title' => '{posttype} Options', | |
'menu_slug' => 'acf-cpt-{posttype}', | |
'capability' => 'edit_posts', | |
'position' => false, | |
'parent_slug' => 'edit.php?post_type={posttype}', | |
'icon_url' => false, | |
'redirect' => false, | |
'post_id' => '{posttype}_options', | |
'autoload' => false | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/Tusko/ACF-CPT-Options-Pages