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

apply_filters('woocommerce_default_order_status') is found 2 times:

  • /includes/abstracts/abstract-wc-order.php line 419
    			 * @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
    			 * @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: