Skip to content

Instantly share code, notes, and snippets.

@Acephalia
Last active September 11, 2023 23:57
Show Gist options
  • Save Acephalia/ea44757cf753c47749def54d11dd2a41 to your computer and use it in GitHub Desktop.
Save Acephalia/ea44757cf753c47749def54d11dd2a41 to your computer and use it in GitHub Desktop.
Divi Remove Projects
//Remove Divi Projects Post Type
add_action( 'init', 'remove_divi_project_post_type' );
if ( ! function_exists( 'remove_divi_project_post_type' ) ) {
function remove_divi_project_post_type(){
unregister_post_type( 'project' );
unregister_taxonomy( 'project_category' );
unregister_taxonomy( 'project_tag' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment