apply_filters ( 'jetpack_sharing_headline_html', string $sharing_headline, string $global[’sharing_label’], string $sharing )

Filter the sharing buttons' headline structure.

Source file: modules/sharedaddy/sharing-service.php

View in GitHub

Parameters

$sharing_headline

(string) Sharing headline structure.

$global[’sharing_label’]

(string) Sharing title.

$sharing

(string) Module name.


Changelog

Since: Jetpack 4.4.0


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

Tutorials

Have a note to contribute?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s