• Resolved primaryimage

    (@primaryimage)


    With the newly introduced LiteSpeed Options Metabox (https://docs.litespeedtech.com/lscache/lscwp/metabox/) – is there a way to disable this, or can a method be added to hide this in the Settings in a future release?

    We try to streamline the editing screens for most website editors (and use the Classic Editor interface), and in the vast majority of scenarios website editors would never be touching these sorts of settings anyway, so it would be good if this was a feature that could be toggled on/off. Or at least enabled only for users with administrator-level privileges.

    I know this can be done per user, per post type, via “Screen Options”, but where we have 100s of editors, we really need a global method to do this. We’re using a temporary fix to hide these boxes via back-end CSS, but it’s obviously not ideal!

    Thank you!

    Mike

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

    (@qtwrk)

    Hi,

    there is no way to hide as for now

    I have forwarded this to our developers as feature request though

    Best regards,

    Hi, I would also request for a setting so that this metabox can be disabled as I have no need for clients to be able to access any of these settings.

    In the meantime I have used the following code added to functions.php to disable it:

    function remove_ols_metabox() {
        if ( is_admin() ) {
            $args = array(
               'public' => true,
            );
    
            $post_types = get_post_types( $args ); 
            foreach ( $post_types  as $post_type ) {
                remove_meta_box( 'litespeed_meta_boxes', $post_type, 'side' );
            }
        }
    }
    add_action( 'add_meta_boxes', 'remove_ols_metabox', 999 );
    gabbsmo

    (@gabbsmo)

    +1 for hiding this metabox, at least for non admins. This is just clutter for our editors.

    +1 for hiding metabox, amended Ricks code slightly to check to see if the user is an administrator, if so keep the meta box and hide for all other user roles.

    //Remove Litespeed Page Options for non-admin
    function remove_ols_metabox() {
        if ( is_admin() && !current_user_can('administrator') ) {
            $args = array(
               'public' => true,
            );
    
            $post_types = get_post_types( $args ); 
            foreach ( $post_types  as $post_type ) {
                remove_meta_box( 'litespeed_meta_boxes', $post_type, 'side' );
            }
        }
    }
    add_action( 'add_meta_boxes', 'remove_ols_metabox', 999 );

    Yes, I’m also looking for an option to hide the metabox.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide the new LiteSpeed metabox on the editing screens’ is closed to new replies.