|
After a bit more slogging through code and Googling, I found the answer. It's contained in this thread (see Otto42's post), but for the record, adding the following to your plugin will override the 404 handling for the conditions you specify:
Note that you need to set "is_404" to false before PHP outputs headers, which is why hooking it in the template_redirect logic is a good idea. ~ Patch |
| More Solution |
|---|
Reffered: https://wordpress.org/