wc_social_login_display

Whether social login buttons are displayed on simple registration shortcode.

Description

apply_filters( 'wc_social_login_display', (array) $array_get_option_wc_social_login_display_array ); 

Parameters (1)

0. $array_get_option_wc_social_login_display_array (array) => (array) get_option( 'wc_social_login_display', array() )
The array get option wc social login display array.

Usage

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

Defined (1)

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

/includes/wc-social-login.php  
  1. return in_array( 'woocommerce_simple_registration', apply_filters( 'wc_social_login_display', (array) get_option( 'wc_social_login_display', array() ) ) );