woocommerce_payment_gateway_add_payment_method_delay

woocommerce_payment_gateway_add_payment_method_delay

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_payment_gateway_add_payment_method_delay') is found 1 times:

  • /includes/class-wc-form-handler.php line 505
     
    			// Test rate limit.
    			$current_user_id = get_current_user_id();
    			$rate_limit_id   = 'add_payment_method_' . $current_user_id;
    			$delay           = (int) apply_filters( 'woocommerce_payment_gateway_add_payment_method_delay', 20 );
    
    			if ( WC_Rate_Limiter::retried_too_soon( $rate_limit_id ) ) {
    				wc_add_notice(
    					sprintf(
    						/* translators: %d number of seconds */
    						_n(