Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created June 27, 2016 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save billerickson/015438fe17a8cffcd847ef91b7aebea5 to your computer and use it in GitHub Desktop.
Save billerickson/015438fe17a8cffcd847ef91b7aebea5 to your computer and use it in GitHub Desktop.
<?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' );
@Tusko
Copy link

Tusko commented Jul 8, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment