我正在开发插件。目前我的插件有1.0版本。如果将来我将用新版本1.1更新我的插件,那么用户如何获得如下图所示的消息呢
How to compare current version with new version.
I have stored my current version in database.
我已经在谷歌上搜索过了。但没有找到任何完美的解决方案。我正在开发插件。目前我的插件有1.0版本。如果将来我将用新版本1.1更新我的插件,那么用户如何获得如下图所示的消息呢
How to compare current version with new version.
I have stored my current version in database.
我已经在谷歌上搜索过了。但没有找到任何完美的解决方案。不知道你到底在找什么,但是Advanced Custom Fields 具有自定义更新消息。
检查其代码时,它使用:
add_action( \'in_plugin_update_message-\' . $hook, array($this, \'in_plugin_update_message\'), 10, 2 );
Thein_plugin_update_message()
回调方法它并不简单,值得detailed look. 请注意,它仅在插件处于活动状态时才起作用。我不希望客户端错误地停用woocommerce插件。我最近在wordpress中遇到了一个叫做必须使用插件的概念。(http://codex.wordpress.org/Must_Use_Plugins)我只是想知道是否有可能将woocommerce作为必备插件使用。