Restrict Author role to only 3 wp-admin pages

Make sure that the second parameter in the “add_action” function matches the name of your restrict access function. It should look something like this:

add_action('admin_head','my_restrict_access'); 
function my_restrict_access(){ /* code as before */ } 

Glad I could help. 🙂