WordPress filter hook · part of WordPress core
strict_redirect_guess_404_permalink
A WordPress core filter that 3 plugins also fire themselves, running on 70+ sites between them.
How to use strict_redirect_guess_404_permalink
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'strict_redirect_guess_404_permalink', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from Persian Kit: Complete Persian/Jalali Pack's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
3 plugins that fire strict_redirect_guess_404_permalink
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Persian Kit: Complete Persian/Jalali Pack50+ installs
apply_filters( 'strict_redirect_guess_404_permalink', false )src/Modules/DateConversion/JalaliPermalinks.php:242 -
DadsFam SEO20+ installs
apply_filters( 'strict_redirect_guess_404_permalink', false )includes/class-dfseo-brain-review.php:1158 -
Rooster LMSFewer than 10 installs
apply_filters( 'strict_redirect_guess_404_permalink', false )includes/Routing/ListingGuard.php:251
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.