Uma área de pesquisa sobre o WordPress para devs e autores do tema



pre_handle_404 ›

Desde4.5.0
Obsoleton/a
apply_filters( 'pre_handle_404', false, $wp_query )
Parâmetros: (2)
  • (bool) $preempt Whether to short-circuit default header status handling. Default false.
    Required: Yes
  • (WP_Query) $wp_query WordPress Query object.
    Required: Yes
Definido em:
Codex:

Filters whether to short-circuit default header status handling.

Returning a non-false value from the filter will short-circuit the handling and return early.





Fonte

if ( false !== apply_filters( 'pre_handle_404', false, $wp_query ) ) {