I would like to restrict WordPress wp-admin to administrators while allowing wp-ajax and admin-post.php
This code restricts admin and allows ajax, but still blocks admin-