before_woocommerce_add_payment_method

before_woocommerce_add_payment_method

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('before_woocommerce_add_payment_method') is found 1 times:

  • /includes/shortcodes/class-wc-shortcode-my-account.php line 405
    		if ( ! is_user_logged_in() ) {
    			wp_safe_redirect( wc_get_page_permalink( 'myaccount' ) );
    			exit();
    		} else {
    			do_action( 'before_woocommerce_add_payment_method' );
    
    			wc_get_template( 'myaccount/form-add-payment-method.php' );
    
    			do_action( 'after_woocommerce_add_payment_method' );
    		}
    	}