unregister_post_type


unregister_post_type ( $post_type )

Parameters:
  • (string) $post_type Post type to unregister.
Returns:
  • (bool|WP_Error) True on success, WP_Error on failure or if the post type doesn't exist.
Defined at:

Description

Unregisters a post type.

Can not be used to unregister built-in post types.

Related Functions

register_post_type, unregister_post_meta, register_post_meta, register_post_status, get_post_type

Top Google Results

User discussions

wpseek mobile