Admin search not working for any type of post

you can try writing something that appends to your query var when the search is initiated something as such as: function gt_search_filter($query) { global $wp_query; if ($query->is_search) if($_REQUEST[‘s’]){ $wp_query->query_vars[‘s’] = $_REQUEST[‘s’]; } return $query; } add_filter(‘pre_get_posts’,’gt_search_filter’); this worked for me but remember this is quite insecure and not advised what other thing you can do … Read more

Stopping user deletion from running on error

After the discussion with @CelsoBessa in the comments section of the question, I came up with this solution function display_admin_notices () { // NOTE: Maybe code should be added here to ensure you are displaying those notices only for certain admin pages if (isset($_GET[‘update’])) { switch ($_GET[‘update’]) { case NOTICE__ERROR: $type=”notice-error”; break; case NOTICE__WARNING: $type=”notice-warning”; … Read more