How to hide a field of the editor by default

Here are a couple options. You could just create a stylesheet that loads in the admin area, and enable that for certain users if needed. Here is an example of loading a stylesheet in the admin for users with the role of “shopmanager”. function my_admin_styles(){ $user = wp_get_current_user(); if( ! empty($user) && count(array_intersect([“shop_manager”], (array) $user->roles … Read more

How to enable error reporting for wp admin section

You can view the error log of the server which is running wordpress. I use nginx to run wordpress on an ubuntu system. Therefore the log is located in /var/log/nginx/error.log. I run the following terminal command to view the error log while opening the wordpress site in the browser. tail -f -n 0 /var/log/nginx/error.log Depending … Read more