最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How do I Allow my custom wordpress theme to get updates? - Stack Overflow

programmeradmin0浏览0评论

I just want to know the proper process for updating a parent theme, via the updates section in the wordpress dashboard.

I want all users to be able to get there parent theme updated via a repo, when the user logs in to the dashboard.

I don't need to know how to make a theme or how to make a child or how to enable updates

I just want to know the proper process for updating a parent theme, via the updates section in the wordpress dashboard.

I want all users to be able to get there parent theme updated via a repo, when the user logs in to the dashboard.

I don't need to know how to make a theme or how to make a child or how to enable updates

Share Improve this question asked Feb 5 at 15:27 hanco ikehanco ike 2812 silver badges14 bronze badges 2
  • What do you mean "I want all users to be able to get there parent theme updated via a repo, when the user logs in to the dashboard."? Are you essentially trying to have automatic updates happen? You could use cron to trigger a wp cli action when a user logs in to update themes. But, this doesn't really make sense. You should never automate a theme update on login. What happens if the update fails and takes down the site? What does the user do then? – disinfor Commented Feb 5 at 17:06
  • for other themes such as the 2024 theme you can login to the dashboard and there is an option to update those themes if they are out of date. By clicking a button "Update" other theme such as divi and such also have a way of making it so you can update there themes, what i can not figure out is where this directive is set in the theme – hanco ike Commented Feb 5 at 18:51
Add a comment  | 

1 Answer 1

Reset to default 1

If your theme is hosted on WordPress.org, the updates will come automatically.

If your theme is not hosted on WordPress.org, then you need a custom updater like :

  1. GitHub Updater (3rd-party plugin),

  2. Custom API for Updates (using wp_get_http and site_transient_update_themes)

发布评论

评论列表(0)

  1. 暂无评论