wpfb_button_text

The WP-FB-AutoConnect wpfb button text hook.

Description

apply_filters( 'wpfb_button_text', (string) $login_with_facebook ); 

Parameters (1)

0. $login_with_facebook (string) => 'Login with Facebook'
The login with facebook.

Usage

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

Defined (1)

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

/Main.php  
  1. document.write('<fb:login-button scope="<?php echo $scope ?>" v="2" size="small" onlogin="<?php echo $callbackName ?>();"><?php echo apply_filters('wpfb_button_text', 'Login with Facebook') ?></fb:login-button>');