Elementor Pro:禁用新添加的 Woocommerce 小部件
我为 woocommerce 编写了一个插件,用于通过 API 发送 woocommerce 运输方法。 当我将 elementor pro 更新到 v3.5 时(其中 elementor 添加了一些小部件来编辑 woocommerce 默认页面),我的代码崩溃并返回“-1”错误,如下所示错误消息。 我正在寻找从 elementor pro v3.5 及更高版本禁用 woocommerce 小部件的解决方案
I have written a plugin for woocommerce to send woocommerce shipping methods through API.
When I update my elementor pro to v3.5, in which elementor adds some widgets to edit woocommerce default pages, my Code brokes and returns an error with "-1" as the error message.
I am searching for a solution to disable woocommerce widgets from elementor pro v3.5 and later
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不过,我不是 Elementor 专业人士,请阅读此处的文档:[https://developers.elementor.com/docs/managers/unregistering-widgets/][1] 您尝试过这样的操作吗?:
注意:在示例中,它注销了 woocommerce 小部件,但我不太确定 woocommerce 元素的名称。
I am not an Elementor pro however, reading the documentation here: [https://developers.elementor.com/docs/managers/unregistering-widgets/][1] have you tried something like this?:
Note: In the example its unregistering the woocommerce widget, but I am not truly sure about the name of the woocommerce-elements.