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. 🙂

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)