0
我正在使用WooCommerce,並且試圖在MyAccount頁面中的訂閱表下添加一個按鈕。在我的帳戶頁面中的WooCommerce訂閱表下添加一個按鈕
我試過這個代碼,但不工作:
add_action('woocommerce_subscription_details_after_subscription_table', 'add_switch_button');
function add_switch_button() {
echo "something;
}
你能幫幫我嗎?
您正在使用過時的模板? – helgatheviking
我使用的視圖預訂由WooCommerce Subscription插件的最新版本提供的模板 –