jetpack_has_identity_crisis

Filters the errors returned when checking for an Identity Crisis.

Description

apply_filters( 'jetpack_has_identity_crisis', (array) $errors, (bool) $force_recheck ); 

Parameters (2)

0. $errors (array)
Array of Identity Crisis errors.
1. $force_recheck (bool)
Ignore any cached transient and manually re-check. Default to false.

Usage

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

Defined (1)

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

/class.jetpack.php  
  1. return apply_filters( 'jetpack_has_identity_crisis', $errors, $force_recheck );