Change 1000+ of WordPress Featured Images in 5 Minutes! › Forums › Questions and Answers › Setting default on posts created programatically › Reply To: Setting default on posts created programatically
QFI does not require a draft status or another status. Every time a post is saved QFI hooks on ‘save_post’. (That hook is fired before the hook ‘wp_insert_post’.) And before that the function ‘wp_set_post_categories()’ is called.
These are called in the function ‘wp_insert_post()’. That function assumed an array with post informations as first parameter. It can consider category informations if values at array key ‘post_category’ are given.
So setting an automatic default featured image based on a category can work with autopost plugins. But I did not find such a plugin which gives category informations to the function ‘wp_insert_post()’. Those plugins are written the way “set the post categories after the insertion of the post”. Fail… Your plugin is a big exception, really!
I would be glad if you would send me your plugin for test purposes. Please mail me at firstname.lastname@example.org.