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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |