Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hide Divi project menu
add_filter( 'et_project_posttype_args', 'hide_divi_project', 10, 1 );
function hide_divi_project( $args ) {
return array_merge( $args, array(
'public' => false,
'exclude_from_search' => false,
'publicly_queryable' => false,
'show_in_nav_menus' => false,
'show_ui' => false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.