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.8.1

do_action('before_woocommerce_pay') is found 1 times:

  • /includes/shortcodes/class-wc-shortcode-checkout.php line 83
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    * @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: