Changing default img html markup but not in admin back-end?
is_admin() is a call that does not verify if the current user role, but rather it was made to check if the code is trying to display in the backend/admin/dashboard area. https://codex.wordpress.org/Function_Reference/is_admin You can try one of three solutions: Reverse the check if(is_admin()) // if display on the dashboard, abort return; ….. your code Check … Read more