PHP 8, AJAX mail form to function.php doesn’t work

This is the cause of your problem: function true_add_ajaxform(){ … function set_html_content_type() { return ‘text/html’; } } You shouldn’t nest function definitions! Move it out of the function like this: function true_add_ajaxform(){ … } function set_html_content_type() { return ‘text/html’; }

Howto disable comment moderation emails for admins, but not for authors

you can make a plugin out of the following code that removes an email from the recipients list and network activate it function wpse158530_filter_emails($emails,$cid) { if (count($emails) > 1) { // you don’t want to remove yourself if you are the author as well as admin // based on http://stackoverflow.com/questions/17252880/remove-value-from-array-in-php if(($key = array_search(your email address, … Read more