admin管理员组文章数量:1429494
I am developing a WordPress plugin and I would like to show a custom logo/thumbnail on the "WordPress Updates" screen like other plugins do.
What do I need to do to get this to happen?
Right now it just shows the default "plug" icon:
I am developing a WordPress plugin and I would like to show a custom logo/thumbnail on the "WordPress Updates" screen like other plugins do.
What do I need to do to get this to happen?
Right now it just shows the default "plug" icon:
Share Improve this question asked Jun 10, 2019 at 20:09 Maximillian LaumeisterMaximillian Laumeister 993 bronze badges 2- 1 What keeps you from looking into the other plugins yourself? – norman.lol Commented Jun 10, 2019 at 20:15
- @leymannx I looked and there's nothing there. No image files, and no references to the images in the readme.txt. – Maximillian Laumeister Commented Jun 10, 2019 at 20:28
2 Answers
Reset to default 0Please read documentation.
https://developer.wordpress/plugins/wordpress-org/plugin-assets/#plugin-icons
Filenames #Filenames Normal: icon-128x128.(png|jpg) High-DPI (Retina): icon-256x256.(png|jpg) SVG: icon.svg
I just figured it out - I am using the Freemius plugin framework, and they have a specific place to put a custom logo - the {/freemius/assets/img/{slug}.png
path in the plugin folder. Presumably, this logo file is picked up by the framework's PHP code and put in the proper place so that it is shown on the update screen.
I don't know how one would go about doing this if they were developing from scratch and not on Freemius, but this is what worked for me.
本文标签: How to include a custom thumbnail with my WordPress plugin
版权声明:本文标题:How to include a custom thumbnail with my WordPress plugin? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745418087a2657778.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论