WP_Post_Type::remove_hooks() WordPress Method

The WP_Post_Type::remove_hooks() function is used to remove all the hooks that are associated with a particular post type. This is useful when you want to deregister a post type.

WP_Post_Type::remove_hooks() #

Removes the future post hook action for the post type.


Source

File: wp-includes/class-wp-post-type.php

	public function remove_hooks() {
		remove_action( 'future_' . $this->name, '_future_post_hook', 5 );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.6.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.