woocommerce_add_payment_method_form_is_valid

woocommerce_add_payment_method_form_is_valid

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_add_payment_method_form_is_valid') is found 1 times:

  • /includes/class-wc-form-handler.php line 498
    			if ( ! wp_verify_nonce( $nonce_value, 'woocommerce-add-payment-method' ) ) {
    				return;
    			}
    
    			if ( ! apply_filters( 'woocommerce_add_payment_method_form_is_valid', true ) ) {
    				return;
    			}
    
    			// Test rate limit.
    			$current_user_id = get_current_user_id();
    			$rate_limit_id   = 'add_payment_method_' . $current_user_id;