Reply To: Setting default on posts created programatically

#1855
Martin Stehle
Moderator

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 info@quickfeaturedimages.com.

Choose your currency:

Close
Converted prices are for reference only - all orders are charged in € Euros (€) EUR.
  • USDUS Dollars ($)
  • EUREuros (€)
  • GBPPounds Sterling (£)
  • CADCanadian Dollars ($)
  • AUDAustralian Dollars ($)
  • BRLBrazilian Real (R$)
  • INRIndian Rupee (₹)
  • CZKCzech Koruna
  • DKKDanish Krone
  • HKDHong Kong Dollar ($)
  • HUFHungarian Forint
  • ILSIsraeli Shekel (₪)
  • JPYJapanese Yen (¥)
  • MYRMalaysian Ringgits
  • MXNMexican Peso ($)
  • NZDNew Zealand Dollar ($)
  • NOKNorwegian Krone
  • PHPPhilippine Pesos
  • PLNPolish Zloty
  • SGDSingapore Dollar ($)
  • SEKSwedish Krona
  • CHFSwiss Franc
  • TWDTaiwan New Dollars
  • THBThai Baht (฿)
  • TRYTurkish Lira (₺)
  • RUBRussian Rubles