Changing Labels and Tooltips
Changing labels and tooltips programmatically

<?php
// Modify the Twitter label.
add_filter(
'has_twitter_text',
function( $twitter_label ) {
return 'Tweet';
}
);
// Modify the Twitter Tooltip.
add_filter(
'has_twitter_tooltip',
function( $twitter_tooltip ) {
return 'Share on Twitter';
}
);
Last updated
Was this helpful?