WordPress Regenerate Thumbnails Programmatically

admin

Administrator
Staff member
I created a C# desktop APP which creates products on my WP page using insert into commands.

I create wp_posts and wp_postmeta programmatically and I can see my product and the image which related to the product without any problem. However, I have problems with 'thumbnails'

I made a quick research and find that I can regenerate the thumbnails using <a href="https://wordpress.org/plugins/regenerate-thumbnails/" rel="nofollow noreferrer">Regenerate Thumbnails Plugin</a>

I am wondering that do I have any chance to run this plugin using one of my php files? (Or call it directly from my C# desktop app using web request or something like that??)

Is there any suggestion?