How to include a custom thumbnail with my WordPress plugin?

I am developing a WordPress plugin and I would like to show a custom logothumbnail on the "WordPress Updates"

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745418087a4626842.html

相关推荐

  • How to include a custom thumbnail with my WordPress plugin?

    I am developing a WordPress plugin and I would like to show a custom logothumbnail on the "WordPress Updates"

    10小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信