-
-
Save billerickson/015438fe17a8cffcd847ef91b7aebea5 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
<?php | |
/** | |
* ACF Options Page | |
* | |
*/ | |
function ea_acf_portfolio_page() { | |
if ( function_exists( 'acf_add_options_sub_page' ) ){ | |
acf_add_options_sub_page( array( | |
'title' => 'Portfolio Settings', | |
'parent' => 'edit.php?post_type=project', | |
'capability' => 'manage_options' | |
) ); | |
} | |
} | |
add_action( 'init', 'ea_acf_portfolio_page' ); |
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