filter

jetpack_facebook_likebox_title

Filter Facebook Likebox’s widget title.

Parameters

$likebox_widget_title
string

Likebox Widget title (including a link to the Page URL).

$title
string

Widget title as set in the widget settings.

$page_url
string

Facebook Page URL.

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 way the title is displayed for all Facebook Page Plugin widgets on your site. In the example below, we’ll remove the link that’s added to that title.
/**
 * Remove link from Facebook Page Plugin Widget title.
 *
 * @param string $likebox_widget_title Likebox Widget title (including a link to the Page URL).
 * @param string $title Widget title as set in the widget settings.
 * @param string $page_url Facebook Page URL.
 */
function jetpackcom_remove_facebook_link_title( $likebox_widget_title, $title, $page_url ) {
    return esc_html( $title );
}
add_filter( 'jetpack_facebook_likebox_title', 'jetpackcom_remove_facebook_link_title', 10, 3 );