Viewing 1 replies (of 1 total)
  • Thread Starter jeffvand

    (@jeffvand)

    I finally took some time today to figure this one out. I added the following to my theme functions.php file to remove the “Custom CSS” for everyone but the administrators.

    if (!current_user_can(‘manage_options’)) {
    function remove_customcss_bar_links() {
    global $wp_admin_bar;
    $wp_admin_bar->remove_menu(‘custom-css’);
    }
    add_action( ‘wp_before_admin_bar_render’, ‘remove_customcss_bar_links’ );
    }

    I would suggest the author update his function around ln 77 to reflect this too.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Improved Simpler CSS] Subscriber role can see "Custom CSS" in admin toolbar’ is closed to new replies.