Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( ! function_exists( 'unregister_post_type' ) ) :
- 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;
- }
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement