Change the sharing headline HTML in Jetpack Social

Change the sharing headline HTML in Jetpack Social on child sites.

Snippet Type

Execute on Child Sites

Snippet

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.