filter

jetpack_sharing_headline_html

Filter the sharing buttons’ headline structure.

Parameters

$sharing_headline
string

Sharing headline structure.

$global
string

['sharing_label'] Sharing title.

$sharing
string

Module name.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.

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 );