WP_Post_Type::remove_hooks()publicWP 4.6.0

Removes the future post hook action for the post type.

Method of the class: WP_Post_Type{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Post_Type = new WP_Post_Type();
$WP_Post_Type->remove_hooks();

Changelog

Since 4.6.0 Introduced.

WP_Post_Type::remove_hooks() code WP 6.1.1

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