How to use wp_ajax_set_post_thumbnail?

Question

I have the link of WordPress doc about this function, but there is nothing explaining how to use this. I have a Ajax function, PHP and a HTML input. In this HTML I set the title and content, and I’d like to set the thumbnail too. Maybe I can do that with this function? Is there some example?

https://developer.wordpress.org/reference/functions/wp_ajax_set_post_thumbnail/

0
, , , , Gabriel Borges 1 year 2020-07-13T15:10:36-05:00 0 Answers 62 views 0

Leave an answer

Browse
Browse