Search
Skip to content
  • Knowledge Base
Sassy Social Share, Super Socializer WordPress

How to Customize the URL being Shared?

admin

If you are using Super Socializer plugin, add following code in the functions.php file of your active theme.

function heateor_ss_customize_shared_url($postUrl, $sharingType, $standardWidget){

// make changes in the URL being shared ($postUrl) and return

return $postUrl . '?MY_CUSTOM_VAR=1';

}

// customize the URL being shared by the social share icons

add_filter('heateor_ss_target_share_url_filter', 'heateor_ss_customize_shared_url', 10, 3);

// customize the URL being shared by the official like, tweet buttons

add_filter('heateor_ss_target_like_button_url_filter', 'heateor_ss_customize_shared_url', 10, 3);

If you are using Sassy Social Share plugin, add following code in the functions.php file of your active theme.

function heateor_sss_customize_shared_url($postUrl, $sharingType, $standardWidget){

// make changes in the URL being shared ($postUrl) and return

return $postUrl . '?MY_CUSTOM_VAR=1';

}

// customize the URL being shared by the social share icons

add_filter('heateor_sss_target_share_url_filter', 'heateor_sss_customize_shared_url', 10, 3);

If you are using Sassy Social Share Premium or Sassy Social Share Pro plugin, add following code in the functions.php file of your active theme.

function heateor_sssp_customize_shared_url($postUrl, $sharingType, $standardWidget){

// make changes in the URL being shared ($postUrl) and return

return $postUrl . '?MY_CUSTOM_VAR=1';

}

// customize the URL being shared by the social share icons

add_filter('heateor_sssp_target_share_url_filter', 'heateor_sssp_customize_shared_url', 10, 3);

Customize the URL being Shared

Post navigation

Previous PostHow to Integrate Youtube Login with WordPress Website?Next PostSocial Follow Buttons Shortcode and Widget

Get Social!!

Best social tools to boost user engagement at your WordPress website. Used by 150000+ websites

Try it now
Facebook
© 2025 Heateor | Terms | Privacy
Proudly powered by WordPress