WordPress at a glance
action is not described

the_post action-hook . WP 2.8.0

Fires once the post data has been setup.


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


  • Since 4.1.0 Introduced $this parameter.

Where the hook is called

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.