Filter the sharing buttons’ headline structure.
Parameters
- $sharing_headline
string
Sharing headline structure.
- $global
string
['sharing_label'] Sharing title.
- $sharing
string
Module name.
Changelog
- Introduced in Jetpack 4.4.0
How to use this hook
Notes
You can use this filter to customize the HTML structure of the Sharing buttons headline. In the example below, we’ll change the Sharing buttons’ headline structure to use h1 instead of the default h3:function jetpackcom_custom_heading( $headline, $label, $module ) { if ( 'sharing' == $module ) { $headline = sprintf( '<h1>%s</h1>', $label ); } return $headline; } add_filter( 'jetpack_sharing_headline_html', 'jetpackcom_custom_heading', 10, 3 );