• I also added this check in my theme functions.php, to disable editor access:

    
    add_action('admin_menu', function () {
        if ( !current_user_can('administrator')) {
            remove_menu_page('activity_log_page');
        }
    }, 999);
    
    add_filter( 'aal_init_caps', function () {
        return array(
            'administrator' => array( 'administrator', 'editor', 'author', 'guest' ),
        );
    });
    
    • This topic was modified 4 years, 6 months ago by ostap34php.
  • The topic ‘Awesome! Work as expected, thank you!’ is closed to new replies.