wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



pre_redirect_guess_404_permalink › WordPress Filter Hooks

Seit5.5.0
Veraltetn/v
apply_filters( 'pre_redirect_guess_404_permalink', null )
Parameter:
  • (null|string|false) $pre Whether to short-circuit guessing the redirect for a 404. Default null to continue with the URL guessing.
    Erforderlich: Ja
Definiert in:
Codex:

Short-circuits the redirect URL guessing for 404 requests.

Returning a non-null value from the filter will effectively short-circuit the URL guessing, returning the passed value instead.





Quellcode

$pre = apply_filters( 'pre_redirect_guess_404_permalink', null );