loop_end action-hookWP 2.0.0

Fires once the loop has ended.

Usage

add_action( 'loop_end', 'wp_kama_loop_end_action' );

/**
 * Function for `loop_end` action-hook.
 * 
 * @param WP_Query $query The WP_Query instance (passed by reference).
 *
 * @return void
 */
function wp_kama_loop_end_action( $query ){

	// action...
}
$query(WP_Query)
The WP_Query instance (passed by reference).

Changelog

Since 2.0.0 Introduced.

Where the hook is called

WP_Query::have_posts()
loop_end
wp-includes/class-wp-query.php 3710
do_action_ref_array( 'loop_end', array( &$this ) );

Where the hook is used in WordPress

Usage not found.