Where do I put the code snippets I found here or somewhere else on the web?

Whenever you find a piece of code without clear installation instructions it is probably a plugin. The example you gave is a good one, because that is the most common case: add_action(‘template_redirect’, ‘remove_404_redirect’, 1); function remove_404_redirect() { // do something } To use such a snippet, put it into a plugin: Create a new file, … Read more

WP REST API GET Method Works But Not The POST Method

Your apiFetch() usage is correct, but you’re getting the “No route was found” error because of the ‘method’ => ‘POST’ part which should actually use methods and not method. (Note that an endpoint can allow one or more HTTP methods) So when it’s method, it’s not used and thus the HTTP method defaults to GET … Read more

How to Remove all Traces of a WordPress Plugin?

Always deactivate and then delete the plugin from the WP plugin menu as opposed to in the file system. You can google around, there is many plugins that remove orphan plugin tables and other data https://onlinemediamasters.com/clean-wordpress-database/ Just be careful and backup, I have done this numerous of times.