Is there a way to remove & redirect any users of a site from accessing
https://www.example.com/wp-admin/
Unless there id is one, i have seen some examples floating around the ask if admin-ajax is being used if so redirect. how ever this is not approach i wish to make as im using admin ajax on the front end for some admins. i just don't wish them to see anything to do with the backend of wordpress.
Only userid 1 should have access to wp-admin.