unregistered_post_type WordPress Action Hook

The unregistered_post_type hook is called when a post type is unregistered. This hook can be used to take action when a post type is unregistered. For example, you could use this hook to remove any customizations that were made to the post type.

do_action( 'unregistered_post_type', string $post_type ) #

Fires after a post type was unregistered.


Parameters

$post_type

(string)Post type key.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More