Skip to content

Instantly share code, notes, and snippets.

@chefblogger

chefblogger/function.php

Last active Aug 21, 2020
Embed
What would you like to do?
Hide DIVI Project Post Type
/*================================================
#3 Divi Project verstecken
Mehr Infos unter
https://www.chefblogger.me/2020/08/21/divi-project-post-type-entfernen-oder-verstecken/
================================================*/
add_filter('et_project_posttype_args', 'mytheme_et_project_posttype_args', 10, 1);
function mytheme_et_project_posttype_args($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.