0
我用WC Integration Class爲我的woocommerce主題創建了一個設置頁面。但是,我現在可以如何訪問存儲的設置?我找不到任何有關這方面的信息,還是我瞎了?如何訪問通過Woocommerce WC Integration保存的數據?
我至今想通了:
// in single product site
global $woocommerce;
print_r($woocommerce);
我發現我的設置作爲一個數組的位置:
$woocommerce->integrations->integrations['integration-my_theme_name']->settings
但我不認爲這是正確的方式獲取數據。我想這會存在一個函數呢?