Viewing 1 replies (of 1 total)
  • Thread Starter John Huebner

    (@hube2)

    to answer my own question and hopefully so that others will find this information easier to find than I did.

    
    add_filter('admin_head', 'edtior_access_to_wpseo_manage_options');
        
    function edtior_access_to_wpseo_manage_options() {
    	if (get_option('jh_editor_access_to_wpseo') != 'done') {
    		$role_object = get_role('editor');
    		$role_object->add_cap('wpseo_manage_options');
    		$role_object->add_cap('wpseo_edit_advanced_metadata');
    		update_option('jh_editor_access_to_wpseo', 'done');
    	}
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Editor Access’ is closed to new replies.