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

How to handle theme activation errors?

programmeradmin4浏览0评论

I am trying to implement the hook for activating a theme, that will install composer dependencies upon activation. In trying to figure out how to handle whether or not the vendor directory exists, I was wondering how to display the dependency errors if they occur, and what I can show instead of just a broken site. Also is there a way to maybe rollback to last theme, and send a notification that the theme is not able to be installed on the users system?

发布评论

评论列表(0)

  1. 暂无评论