before_angelleye_pro_checkout_validate_fields

The PayPal for WooCommerce before angelleye pro checkout validate fields hook.

Description

do_action( 'before_angelleye_pro_checkout_validate_fields', (unknown) $card_type, (number) $card_number, (unknown) $card_cvc, (unknown) $card_exp_month, (unknown) $card_exp_year ); 

Parameters (5)

0. $card_type (unknown)
The card type.
1. $card_number (number)
The card number.
2. $card_cvc (unknown)
The card cvc.
3. $card_exp_month (unknown)
The card exp month.
4. $card_exp_year (unknown)
The card exp year.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'before_angelleye_pro_checkout_validate_fields', $card_type, $card_number, $card_cvc, $card_exp_month, $card_exp_year ); 
The following example is for adding a hook callback.
  1. // define the before_angelleye_pro_checkout_validate_fields callback 
  2. function action_before_angelleye_pro_checkout_validate_fields( $card_type, $card_number, $card_cvc, $card_exp_month, $card_exp_year ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'before_angelleye_pro_checkout_validate_fields', 'action_before_angelleye_pro_checkout_validate_fields', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'before_angelleye_pro_checkout_validate_fields', 'action_before_angelleye_pro_checkout_validate_fields', 10, 5 ); 

Defined (1)

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

/classes/wc-gateway-paypal-pro-angelleye.php  
  1. do_action('before_angelleye_pro_checkout_validate_fields', $card->type, $card->number, $card->cvc, $card->exp_month, $card->exp_year);