WooCommerce Orders are registered as shop_order
not “woocommerce orders”. Also you have a space in ” posts”.
Try:
$custom_types = array("shop_order" , "post");
Posts aren’t custom post types in WordPress though. They’re of the default post types that are registered in WP.