Remove
I would like to remove the post-type Articles from the Wordpress menu I researched some possibilities but nothing worked.
I've tried creating the unregister_post_type
method this way:
function unregister_post_type( $post_type ) {
global $wp_post_types;
if ( isset( $wp_post_types[ $post_type ] ) ) {
unset( $wp_post_types[ $post_type ] );
return true;
}
return false;
}