Short answer, but you have a !is_admin()
condition. That will prevent the bulk of that code from running on the back end. Remove that and the code should work on both front and back.
Short answer, but you have a !is_admin()
condition. That will prevent the bulk of that code from running on the back end. Remove that and the code should work on both front and back.