WP_Post_Type::add_hooks() WordPress Method
The WP_Post_Type::add_hooks() method is used to add hooks related to the post type. This includes hooks for managing the post type and for handling the content associated with the post type.
WP_Post_Type::add_hooks() #
Adds the future post hook action for the post type.
Source
File: wp-includes/class-wp-post-type.php
public function add_hooks() { add_action( 'future_' . $this->name, '_future_post_hook', 5, 2 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |