admin管理员组

文章数量:1426041

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
Add a comment  | 

2 Answers 2

Reset to default 0

Please 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