loop_no_results action-hook . WP 4.9.0
Fires if no results are found in a post query.
Usage
add_action( 'loop_no_results', 'action_function_name_4746' ); function action_function_name_4746( $this ){ // action... }
- $this(WP_Query)
- The WP_Query instance.
Changelog
Since 4.9.0 | Introduced. |
Where the hook is called
loop_no_results
wp-includes/class-wp-query.php 3348
do_action( 'loop_no_results', $this );