Forums
(@michoch)
15 years, 9 months ago
No, I don’t want to trigger it myself, I want to trigger it from the theme or plugin files. wp_redirect() to inexisting random URL is also not an option.
EDIT: ok, I found it in the source code.
eg.: global $wp_query; $wp_query->set_404();