Hello,
Okay I found the problem. They are using the template_redirect
action just like me, in order to process a specific 404 page template.
You can fix WP 404 Auto Redirect to Similar Post, by doing this:
In the file:
plugins/wp-404-auto-redirect-to-similar-post/wp-404-auto-redirect-similar-post.php
Line: 224
.
Find:
add_action('template_redirect', 'wp404arsp_init', 999);
Replace to:
add_action('template_redirect', 'wp404arsp_init', 0);
It will now work ??
The problem is that some others plugins have the opposite problem: They create fake pages using that hook (which isn’t a good practice). It requires my plugin to change priority to 999
(just like right now).
So I’ll have to find a solution to make it work in all cases. Maybe I’ll add a setting field in the administration in order to let the admin choose it’s priority depending on his plugins.
Regards.