do_action( ‘loop_no_results’, WP_Query $query )

In this article

Fires if no results are found in a post query.

Parameters

$queryWP_Query
The WP_Query instance.

Source

do_action( 'loop_no_results', $this );

Changelog

VersionDescription
4.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.