admin管理员组文章数量:1406177
I would like to extend the STORE API (NOT REST API) from WooCommerce to add some own CustomerDetails. But all I tried doesn't work.
I tried to add an action add 'woocommerce_blocks_loaded':
add_action('woocommerce_blocks_loaded', function () {
var_dump('action woocommerce_blocks_loaded');
});
But this doesn't work. I added some breakpoints with Xdebug and it is never called. The Code is for testing in the Wordpress Theme writte in the setup.php.
All examples that I find is with woocommerce_blocks_loaded
and that isn't working in my scenario.
But the STORE API is the best scenario, because I want to rewrite the Checkout Side with Roots Sage Theme and vuejs and so I need Endpoints to make some API Calls to grab the datas.
本文标签: wordpressWooCommerce STORE API ExtensionStack Overflow
版权声明:本文标题:wordpress - WooCommerce STORE API Extension - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744970324a2635196.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论