Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function custom_unregister_theme_post_types() {
- global $wp_post_types;
- if ( isset( $wp_post_types["agent"] ) ) {
- unset( $wp_post_types[ "agent" ] ); //UPDATED
- }
- }
- add_action( 'init', 'custom_unregister_theme_post_types', 20 );
Add Comment
Please, Sign In to add comment