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 );
	}


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.