WordPress at a glance
action is not described

the_post action-hook . WP 2.8.0

Fires once the post data has been setup.

Usage

add_action( 'the_post', 'action_function_name_782', 10, 2 );
function action_function_name_782( $post, $this ){
	// action...
}
$post(WP_Post)
The Post object (passed by reference).
$this(WP_Query)
The current Query object (passed by reference).

Notes

  • Since 4.1.0 Introduced $this parameter.

Where the hook is called

WP_Query::setup_postdata()
wp-includes/class-wp-query.php 4050
do_action_ref_array( 'the_post', array( &$post, &$this ) );

Where the hook is used (in WP core)

Does not used.