bp_core_login_filter_shake_codes

Add our custom error code to WP login's shake error codes.

Description

(array) bp_core_login_filter_shake_codes( (array) $codes ); 

Returns (array)

Parameters (1)

0. $codes (array)
Array of WP error codes.

Usage

  1. if ( !function_exists( 'bp_core_login_filter_shake_codes' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-catchuri.php'; 
  3.  
  4. // Array of WP error codes. 
  5. $codes = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_core_login_filter_shake_codes($codes); 
  9.  

Defined (1)

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

/bp-core/bp-core-catchuri.php  
  1. function bp_core_login_filter_shake_codes( $codes ) { 
  2. $codes[] = 'bp_no_access'; 
  3. return $codes;