woocommerce_generate_order_key

woocommerce_generate_order_key

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_generate_order_key') is found 1 times:

  • /includes/wc-order-functions.php line 168
    	if ( '' === $key ) {
    		$key = wp_generate_password( 13, false );
    	}
    
    	return 'wc_' . apply_filters( 'woocommerce_generate_order_key', 'order_' . $key );
    }
    
    /**
     * Finds an Order ID based on an order key.
     *
     * @param string $order_key An order key has generated by.