WP骨头 - 如何检查有关激活我的插件的其他插件
我是 wp bones插件框架的新手。我需要检查WooCommerce
是否已在插件激活上安装。我可以在这样的自定义插件文件中执行此操作,
function activate()
{
if (!class_exists('woocommerce')) {
deactivate_plugins(plugin_basename(__FILE__));
wp_die(__('Please install and activate WooCommerce first. Click the Back button in your browser to continue.'));
}
}
但是在 wp bones 框架中开发时,该如何在插件中进行检查。
I am new to WP Bones Plugin Framework. I need to check if woocommerce
is installed on my plugin activation. I can do it in the custom plugin file like this
function activate()
{
if (!class_exists('woocommerce')) {
deactivate_plugins(plugin_basename(__FILE__));
wp_die(__('Please install and activate WooCommerce first. Click the Back button in your browser to continue.'));
}
}
But how can I do this check in my plugin while developing in WP Bones framework.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论