• Resolved Morshed Alam

    (@sumon1068)


    Hi,

    I opened a ticket previously.

    @qtwrk , you said you will forward this to our developers as feature request. Is there any update? If you feel lazy, I’m posting the thread again:

    Post editor has LiteSpeed Options Metabox now. I don’t use it but I think this can be handy. But it is problematic that this metabox is shown to non admin users too.

    How can I hide this metabox from non-admin users?

    I think it isn’t rational to let non-admin user decide where to turn on cache or not.

    Looking forward to hearing from you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support qtwrk

    (@qtwrk)

    actually it’s added already

    please add this to your theme’s functions.php

    add_filter( 'litespeed_bypass_metabox', 'bypass_metabox_for_non_admin', 10, 2 );
    function bypass_metabox_for_non_admin( $bypass, $post_type ) {
        if ( ! current_user_can( 'administrator' ) ) {
            return true;
        }
    }

    this will bypass metabox for all non-admin users

    Thread Starter Morshed Alam

    (@sumon1068)

    Thank you. It works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘LiteSpeed Options Metabox for admin only’ is closed to new replies.