loop_no_results хук-событие . WP 4.9.0
Fires if no results are found in a post query.
Использование
add_action( 'loop_no_results', 'action_function_name_2221' ); function action_function_name_2221( $this ){ // action... }
- $this(WP_Query)
- The WP_Query instance.
Список изменений
С версии 4.9.0 | Введена. |
Где вызывается хук
loop_no_results
wp-includes/class-wp-query.php 3348
do_action( 'loop_no_results', $this );