我需要在“我的订阅”模板和“订阅详细信息”模板中添加更多列。我试图通过在主题内创建woocommerce-subscription目录并在该位置复制代码但无法正常工作来覆盖其主题中的内容。
我试图在主题旁边创建woocommerce-subscriptions / myaccount目录,并在此处复制所有woocommerce-subscriptions / templates / myaccounts文件,但它并不覆盖。
我尝试通过在主题函数.php中添加以下代码
function mytheme_add_woocommerce_support() {
add_theme_support( 'woocommerce' );
}
add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );