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

hooks - Show notice just below the search form on the themes page

programmeradmin2浏览0评论

I want to show a notice on the theme installation page. I have used the admin_notices hook but it is showing the message above the search box. I want to print the notice at the place of a black line in the image.

For the plugin page, we have the pre_current_active_plugins hook but for the themes page, I didn't find one.

I want to show a notice on the theme installation page. I have used the admin_notices hook but it is showing the message above the search box. I want to print the notice at the place of a black line in the image.

For the plugin page, we have the pre_current_active_plugins hook but for the themes page, I didn't find one.

Share Improve this question asked Jan 27, 2022 at 16:48 void Stringvoid String 111 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

Unfortunately, there is no hook available to place a notice in the spot you've pointed out.

Looking at the source, you can see that the "New theme activated" message is one of several hard-coded messages, and no filter or action exists to add a custom message.

If you really wanted to, you could add your message using the admin_notices hook, then use some JS to move it to the desired location, but I wouldn't recommend it. It's probably best to just go with the flow, and use admin_notices.

发布评论

评论列表(0)

  1. 暂无评论