Updated annotations to 4.3

This commit is contained in:
vedanshujain 2020-06-15 18:54:10 +05:30
parent c1a007297e
commit b8a1a69b2b
2 changed files with 5 additions and 5 deletions

View File

@ -398,7 +398,7 @@ class WC_Checkout {
/**
* Action hook fired after an order is created.
*
* @since 4.1.0
* @since 4.3.0
*/
do_action( 'woocommerce_checkout_order_created', $order );
@ -409,7 +409,7 @@ class WC_Checkout {
/**
* Action hook fired when an order is discarded due to Exception.
*
* @since 4.1.0
* @since 4.3.0
*/
do_action( 'woocommerce_checkout_order_exception', $order );
}

View File

@ -304,7 +304,7 @@ function wc_get_held_stock_quantity( WC_Product $product, $exclude_order_id = 0
* Filter: woocommerce_hold_stock_for_checkout
* Allows enable/disable hold stock functionality on checkout.
*
* @since 4.1.0
* @since 4.3.0
* @param bool $enabled Default to true if managing stock globally.
*/
if ( ! apply_filters( 'woocommerce_hold_stock_for_checkout', wc_string_to_bool( get_option( 'woocommerce_manage_stock', 'yes' ) ) ) ) {
@ -345,7 +345,7 @@ add_action( 'woocommerce_checkout_order_created', 'wc_reserve_stock_for_order' )
/**
* Release held stock for an order.
*
* @since 4.1.0
* @since 4.3.0
* @param \WC_Order|int $order Order ID or instance.
*/
function wc_release_stock_for_order( $order ) {
@ -353,7 +353,7 @@ function wc_release_stock_for_order( $order ) {
* Filter: woocommerce_hold_stock_for_checkout
* Allows enable/disable hold stock functionality on checkout.
*
* @since 4.1.0
* @since 4.3.0
* @param bool $enabled Default to true if managing stock globally.
*/
if ( ! apply_filters( 'woocommerce_hold_stock_for_checkout', wc_string_to_bool( get_option( 'woocommerce_manage_stock', 'yes' ) ) ) ) {