admin管理员组文章数量:1287625
I'm currently doing an audit on a WordPress site for some supervisors and was curious if there was any way under the hood to see when was the last time a plugin was actually activated. This will give me some leverage in removing them if its been a while. Is there anyway I can complete this type of investigation through WordPress?
I'm currently doing an audit on a WordPress site for some supervisors and was curious if there was any way under the hood to see when was the last time a plugin was actually activated. This will give me some leverage in removing them if its been a while. Is there anyway I can complete this type of investigation through WordPress?
Share Improve this question edited Sep 16, 2021 at 17:06 klewis asked Sep 16, 2021 at 16:53 klewisklewis 8991 gold badge14 silver badges29 bronze badges1 Answer
Reset to default 2It looks like, in a Multisite installation, any network-wide plugins record their activation time in a site option. By default, plugins activated in a single site in a Multisite network (or in a single-site installation) do not.
See the source of the activate_plugin()
function.
You could write a simple plugin that records that information, using the activated_plugin
hook, but that won't help you with any older plugins -- any data you record that way would only exist from now[^1] on out.
[^1]: If by "now" we mean "the moment you activate your plugin-tracking plugin".
本文标签: Determining when was the last time a plugin was activated
版权声明:本文标题:Determining when was the last time a plugin was activated 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741315902a2371910.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论