On this page
do_action( 'loop_no_results', WP_Query $query )
Fires if no results are found in a post query.
Parameters
Source
File: wp-includes/class-wp-query.php. View all references
do_action( 'loop_no_results', $this );
Related
Used By
| Used By | Description |
|---|---|
| WP_Query::have_posts() wp-includes/class-wp-query.php | Determines whether there are more posts available in the loop. |
Changelog
| Version | Description |
|---|---|
| 4.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/loop_no_results