rtMedia Social Sharing

Enable rtSocial sharing feature

The site admin first needs to enable the Enable rtSocial share buttons option from Display tab under rtMedia admin settings.

social-sharing-setting

Enabling this will install rtSocial share buttons, which will be displayed on single media view.

social-sharing-buttons

You can also modify settings for the buttons by clicking manage rtSocial options.

For more details on rtSocial, Please read document here http://docs.rtcamp.com/rtsocial/

Enable rtSocial sharing feature

The site admin first needs to enable the Enable rtSocial share buttons option from Display tab under rtMedia admin settings.

social-sharing-setting

Enabling this will install rtSocial share buttons, which will be displayed on single media view.

social-sharing-buttons

You can also modify settings for the buttons by clicking manage rtSocial options.

For more details on rtSocial, Please read document here http://docs.rtcamp.com/rtsocial/

Filters

  • rtmedia_pro_pinterest_thumb_size

    Use this filter to set a custom Pinterest image size

    add_filter( 'rtmedia_pro_pinterest_thumb_size', 'rtmedia_pro_pinterest_thumb_size_callback', 10, 1 );
    function rtmedia_pro_pinterest_thumb_size_callback( $size ){
    	return 'thumbnails';
    }
    
  • rtm_facebook_media_metadata

    Use this filter to set a custom title of media that are being share in facebook

    add_filter( 'rtm_facebook_media_metadata', 'rtm_facebook_media_metadata_callback', 10, 2 );
    function rtm_facebook_media_metadata_callback( $media_data, $media_id ){
    	$media_data[ 'title' ] = "rtMedia";
    	return $media_data;
    }
    
  • rtm_facebook_media_width

    Use this filter to set a custom Facebook image width

    add_filter( 'rtm_facebook_media_width', 'rtm_facebook_media_width_callback', 10, 1 );
    function rtm_facebook_media_width_callback( $width ){
    	return '500';
    }
    
  • rtm_facebook_media_height

    Use this filter to set a custom Facebook image height

    add_filter( 'rtm_facebook_media_height', 'rtm_facebook_media_height_callback', 10, 1 );
    function rtm_facebook_media_height_callback( $height ){
    	return '500';
    }