因此,我想修改可以在WC_Customer类中找到的get_downloadable_products()产生的输出。如何扩展WC_Customer
我原来虽然是扩展WC_Customer,所以我创建以下文件夹/wp-content/themes/my-theme/woocommerce/classes/class-wc-customer.php
内键入此:
类WC_Customer_Custom扩展WC_Customer {
修改的输出,但不能看到我的网站上的任何变化。
有人可以让我知道我该怎么做?
巨魔警报,后倒在前进的投票! – user30899