jetpack_facebook_likebox_title

Filter Facebook Likebox's widget title.

Description

apply_filters( 'jetpack_facebook_likebox_title', (string) $likebox_widget_title, (string) $title, (string) $page_url ); 

Parameters (3)

0. $likebox_widget_title (string)
Likebox Widget title (including a link to the Page URL).
1. $title (string)
Widget title as set in the widget settings.
2. $page_url (string)
Facebook Page URL.

Usage

To run the hook, copy the example below.
  1. $likebox_widget_title = apply_filters( 'jetpack_facebook_likebox_title', $likebox_widget_title, $title, $page_url ); 
  2.  
  3. if ( !empty( $likebox_widget_title ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the jetpack_facebook_likebox_title callback 
  2. function filter_jetpack_facebook_likebox_title( $likebox_widget_title, $title, $page_url ) { 
  3. // make filter magic happen here... 
  4. return $likebox_widget_title
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'jetpack_facebook_likebox_title', 'filter_jetpack_facebook_likebox_title', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'jetpack_facebook_likebox_title', 'filter_jetpack_facebook_likebox_title', 10, 3 ); 

Defined (1)

The filter is defined in the following location(s).

/modules/widgets/facebook-likebox.php  
  1. echo apply_filters( 'jetpack_facebook_likebox_title', $likebox_widget_title, $title, $page_url );