Documentation
Print This page
Home Doc Developers Custom Click To Tweet URL Hook (PRO)
Custom Click To Tweet URL Hook (PRO)
You can change the URL of click to tweet button by using the filter. You can change the URL for a specific post or you can change URL global.
Filter: ssb_ctt_url
Example Usage:
function custom_click_to_url( $url ){
if( 35 == get_the_ID( ) ){
$url ='http://wpbrigade.com';
}
return $url;
}
add_filter('ssb_ctt_url','custom_click_to_url');
Still stuck? How can we help?
Updated on
May 14, 2026