当我使用:
print_r($product);
它返回以下内容:
WC_Product_Simple
Object
( [id] => 156
[post] => WP_Post Object
( [ID] => 156
[post_author] => 1
[post_date] => 2016-07-01 08:59:05
[post_date_gmt] => 2016-07-01 06:59:05
[post_content] => single product with picture
.....
如何将 [post_content]
的值输出?
我正在使用WordPress与WooCommerce插件。
谢谢。