Register order type. Do not use before init.
Wrapper for register post type, as well as a method of telling WC which. post types are types of orders, and having them treated as such.
$args are passed to register_post_type, but there are a few specific to this function: - exclude_from_orders_screen (bool) Whether or not this order type also get shown in the main. orders screen. - add_order_meta_boxes (bool) Whether or not the order type gets shop_order meta boxes. - exclude_from_order_count (bool) Whether or not this order type is excluded from counts. - exclude_from_order_views (bool) Whether or not this order type is visible by customers when. viewing orders e.g. on the my account page. - exclude_from_order_reports (bool) Whether or not to exclude this type from core reports. - exclude_from_order_sales_reports (bool) Whether or not to exclude this type from core sales reports.
See: register_post_type for $args used in that function
Located at wc-order-functions.php
||Post type. (max. 20 characters, can not contain capital letters or spaces).|
||An array of arguments.|
Return value summary
||Success or failure|