WP_Post_Type::add_hooks
Adds the future post hook action for the post type.
Method of the class: WP_Post_Type{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Post_Type = new WP_Post_Type(); $WP_Post_Type->add_hooks();
Changelog
| Since 4.6.0 | Introduced. |
WP_Post_Type::add_hooks() WP Post Type::add hooks code WP 7.0
public function add_hooks() {
add_action( 'future_' . $this->name, '_future_post_hook', 5, 2 );
}