before_woocommerce_pay

before_woocommerce_pay

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.4.2

do_action('before_woocommerce_pay') is found 1 times:

  • /includes/shortcodes/class-wc-shortcode-checkout.php line 82
    	 * @param int $order_id Order ID.
    	 */
    	private static function order_pay( $order_id ) {
    
    		do_action( 'before_woocommerce_pay' );
    
    		$order_id = absint( $order_id );
    
    		// Pay for existing order.
    		if ( isset( $_GET['pay_for_order'], $_GET['key'] ) && $order_id ) { // WPCS: input var ok, CSRF ok.
    			try {
    

See this hook used in plugins: