Skip to content

Instantly share code, notes, and snippets.

@jaredatch
Last active October 21, 2022 12:06
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save jaredatch/11239971 to your computer and use it in GitHub Desktop.
Save jaredatch/11239971 to your computer and use it in GitHub Desktop.
<?php
/**
* Create ACF setting page under Events CPT menu
*
* @since 1.0.0
*/
if ( function_exists( 'acf_add_options_sub_page' ) ){
acf_add_options_sub_page(array(
'title' => 'Event Settings',
'parent' => 'edit.php?post_type=events',
'capability' => 'manage_options'
));
}
@jamiemitchell
Copy link

Hi Jarad

I've added this to my functions but were will it be in WP Admin?

Can't seem to see it...

@joelnewcomer
Copy link

You are a genius Jared! This is exactly what I needed. Thanks for sharing!

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