How can I reach ms_site_not_found action?
-
Hi,
when a subdomain is not found, then wp redirects to the wp-signup.php.
In that case, I want to load a 404 page instead, without any redirecting, because the redirecting can cause negative seo.I found the ms_site_not_found action, and I tried to hook to it, but nothing happened. The hooked function never fires.
For example in the mu-plugins directory, I wrote that:
add_action('ms_site_not_found', 'sitenotfound'); function sitenotfound() { die('111'); }
and the
die('111');
line never runs. Nothing runs in this function.Can anyone help me, why this action not working?
If i write a die() line anywhere else in this file, that working, but the function not.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How can I reach ms_site_not_found action?’ is closed to new replies.