然而,我在访问我可以直接在WooCommerce后面访问这个函数吗?require_once('/wp-content/plugins/woocommerce/includes/class-wc-order.php');
$order_id= $_GET['order']; // pull the order info from the URL
我目前工作在商店页面和定制产品循环。使用WP_Query,我可以成功地显示基于meta_key和meta_val的产品,但我遇到了麻烦。现在我必须显示来自类别的所有产品,作为参数,我需要传递category_id。这是我的密码: 'post_type' => 'product', // get category by slug is working -
'product