woocommerce_default_order_status

woocommerce_default_order_status

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_default_order_status') is found 2 times:

  • /includes/abstracts/abstract-wc-order.php line 419
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
             * @since 3.0.0
             *
             * @param string $status Default status.
             */
            $status = apply_filters( 'woocommerce_default_order_status', OrderStatus::PENDING );
        }
        return $status;
    }
     
    /**
     * Get discount_total.
  • /includes/data-stores/abstract-wc-order-data-store-cpt.php line 364
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
         * @param string $order_status Default order status.
         *
         * @since 3.7.0
         */
        $order_status = apply_filters( 'woocommerce_default_order_status', OrderStatus::PENDING );
    }
     
    $post_status    = $order_status;
    $valid_statuses = get_post_stati();
     
    // Add a wc- prefix to the status, but exclude some core statuses which should not be prefixed.

See this hook used in plugins: