do_action_ref_array( ‘set_404’, WP_Query $query )

In this article

Fires after a 404 is triggered.

Parameters

$queryWP_Query
The WP_Query instance (passed by reference).

Source

do_action_ref_array( 'set_404', array( $this ) );

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

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