Only Admin receives email

Mail sent from WP uses wp_mail() function. There is a filter that you can use before the mail is sent to filter the arguments used in the wp_mail() function, including the $to value. See https://developer.wordpress.org/reference/hooks/wp_mail/ Look at the example code on that page to get an idea of how to block (or redirect) all mail … Read more

How to prepend a header section to all pages related to my WordPress Plugin

it didn’t work for you because hook admin_head is designed to add <link> tags inside <head> section. So even if you will render something there it won’t be visible, because it is outside <body>. If you want to render something after admin head bar, you should use wp_after_admin_bar_render hook: https://developer.wordpress.org/reference/hooks/wp_after_admin_bar_render/ To determine if you are … Read more

React Material UI and WordPress Admin Area

The fundamental issue is that MUI is probably not meant to be used in an environment where there are already styles like this. It’s supposed to be the base layer. The WordPress admin has its own styles and it’s highly unusual to try and use a completely different UI framework inside of it. These types … Read more