哪个 wordpress 钩子调用主题更新主题名称的进度?
Which wordpress hook call theme update on progress with the theme name?
我想获取我更新的主题的详细信息,无论它是激活的还是停用的。我们如何在主题更新和 return 主题名称时使用钩子。
使用Wp_Upgrader class 获取实例as explained here and it can be instance of theme upgrader. You can use something like wordpress init to look at if you are worried that other people can access the admin page for upgrades and you want to stop them from doing so. I am not sure the actual purpose you want this for but it is possible to inject into core upgrade process to do something like upgrade plugin or theme. Read around Theme_Upgrade. You can also use something like pre_auto_update hook to cover for theme update, I have not used it but I think this might be quick way to check all theme or your theme auto update running or you can hook further into when update data。
我想获取我更新的主题的详细信息,无论它是激活的还是停用的。我们如何在主题更新和 return 主题名称时使用钩子。
使用Wp_Upgrader class 获取实例as explained here and it can be instance of theme upgrader. You can use something like wordpress init to look at if you are worried that other people can access the admin page for upgrades and you want to stop them from doing so. I am not sure the actual purpose you want this for but it is possible to inject into core upgrade process to do something like upgrade plugin or theme. Read around Theme_Upgrade. You can also use something like pre_auto_update hook to cover for theme update, I have not used it but I think this might be quick way to check all theme or your theme auto update running or you can hook further into when update data。