summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/sharedaddy/sharing-service.php')
-rw-r--r--plugins/jetpack/modules/sharedaddy/sharing-service.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/sharedaddy/sharing-service.php b/plugins/jetpack/modules/sharedaddy/sharing-service.php
index 114ac93a..db90a5a8 100644
--- a/plugins/jetpack/modules/sharedaddy/sharing-service.php
+++ b/plugins/jetpack/modules/sharedaddy/sharing-service.php
@@ -684,8 +684,23 @@ function sharing_display( $text = '', $echo = false ) {
// Wrapper
$sharing_content .= '<div class="sharedaddy sd-sharing-enabled"><div class="robots-nocontent sd-block sd-social sd-social-' . $global['button_style'] . ' sd-sharing">';
- if ( $global['sharing_label'] != '' )
- $sharing_content .= '<h3 class="sd-title">' . $global['sharing_label'] . '</h3>';
+ if ( $global['sharing_label'] != '' ) {
+ $sharing_content .= sprintf(
+ /**
+ * Filter the sharing buttons' headline structure.
+ *
+ * @module sharing
+ *
+ * @since 4.4.0
+ *
+ * @param string $sharing_headline Sharing headline structure.
+ * @param string $global['sharing_label'] Sharing title.
+ * @param string $sharing Module name.
+ */
+ apply_filters( 'jetpack_sharing_headline_html', '<h3 class="sd-title">%s</h3>', $global['sharing_label'], 'sharing' ),
+ esc_html( $global['sharing_label'] )
+ );
+ }
$sharing_content .= '<div class="sd-content"><ul>';
// Visible items