Skip to main content
added 1 character in body
Source Link
Rarst
  • 100k
  • 10
  • 161
  • 298

There is a dedicated method for it WP_Query->set_404(). From quick search through code it can be set in WP_Query->parse_query() or WP->handle_404() (note WP, not `WP_QueryWP_Query!).

But it can (and sometimes does) get set on query externally, for example by plugin that needs to invalidate specific resource.

There is a dedicated method for it WP_Query->set_404(). From quick search through code it can be set in WP_Query->parse_query() or WP->handle_404() (note WP, not `WP_Query!).

But it can (and sometimes does) get set on query externally, for example by plugin that needs to invalidate specific resource.

There is a dedicated method for it WP_Query->set_404(). From quick search through code it can be set in WP_Query->parse_query() or WP->handle_404() (note WP, not WP_Query!).

But it can (and sometimes does) get set on query externally, for example by plugin that needs to invalidate specific resource.

Source Link
Rarst
  • 100k
  • 10
  • 161
  • 298

There is a dedicated method for it WP_Query->set_404(). From quick search through code it can be set in WP_Query->parse_query() or WP->handle_404() (note WP, not `WP_Query!).

But it can (and sometimes does) get set on query externally, for example by plugin that needs to invalidate specific resource.