WPDev.one
Core Function
View Source on Trac ↗

unregister_post_type()

unregister_post_type( mixed $post_type )

Unregisters a post type.

Parameters 1 required

Name / Type Description
$post_type
string

Post type to unregister.

Required

Return Value

((true)
| WP_Error) True on success, WP_Error on failure or if the post type doesn't exist.

Function Information

Since Version
4.5.0
Source File
wp-includes/post.php
Advertisement