Support » Plugin: WordPress Social Sharing Plugin - Sassy Social Share » Remove options to show interface

  • Resolved ironfish2

    (@ironfish2)


    Hi, at the bottom of the editing view of a page, post, custom post type is shown:

    Sassy Social Share

    Disable Standard Sharing interface on this listing
    Disable Floating Sharing interface on this listing

    Is there a way to disable showing this?

    I do not want users to be able to choose these options.

    Thanks ahead of time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • It seems you are answering many support issues, except mine for the moment – I would appreciate it if you could answer mine…

    Plugin Author Heateor Support

    (@heateor)

    Hi,

    Sorry for the late reply.
    You can place following snippet in the functions.php file of your active theme to achieve the desired behavior:

    /**
     * Remove plugin's meta box from all posts for non-admin users
     */
    function heateor_sss_hide_meta_box() {
        if ( is_admin() && ! current_user_can( 'manage_options' ) ) {
    	    $args = array(
    	       'public'   => true,
    	    );
    	    $output = 'names';
    	    $operator = 'and';
    
    	    $post_types = get_post_types( $args, $output, $operator ); 
            foreach ( $post_types  as $post_type ) {
                remove_meta_box( 'heateor_sss_meta', $post_type, 'advanced' );
            }
        }
    }
    add_action( 'add_meta_boxes', 'heateor_sss_hide_meta_box', 999 );
    ironfish2

    (@ironfish2)

    Thanks for getting back to me 🙂 and providing a work around.

    I appreciate that this may be a feature that some users want, but for me it is a very undesired feature. It currently allows non-admin users to choose whether or not sharing icons should be shown, and I dont see many cases where non-admin users should be allowed to do this…..

    Please consider making this an option in the settings of the plugin.

    Plugin Author Heateor Support

    (@heateor)

    You’re welcome.

    Please consider making this an option in the settings of the plugin.

    We will consider it in upcoming releases.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove options to show interface’ is closed to new replies.