Created
August 16, 2019 12:39
-
-
Save trueqap/31b195f18a72a6bf93ed9882ff5ac81e to your computer and use it in GitHub Desktop.
Hide Divi project menu
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 | |
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