jetpack_sso_match_by_email

Link the local account to an account on WordPress.com using the same email address.

Description

apply_filters( 'jetpack_sso_match_by_email', (bool) $match_by_email ); 

Parameters (1)

0. $match_by_email (bool)
Should we link the local account to an account on WordPress.com using the same email address. Default to false.

Usage

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

Defined (1)

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

/modules/sso.php  
  1. return apply_filters( 'jetpack_sso_match_by_email', $match_by_email );