Posts rejected upon creation are not shown in Post feed

  • Solved
  • Posted 1 month ago

Using the latest Voxel version with the Directory theme.
I’ve made a content validator that hooks into the Post_Submitted_Event and Post_Updated_Event.

The validator rejects the post if it contains bad words.
– When the Place is rejected upon CREATION – it doesn’t show in the My listings page.
– When a Place is rejected upon UPDATE – it shows in the My listings page.
This behaviour is related to the Post submission settings for the CPT and only happens when submitted/edited are sat to Pending review. When submitted/edited are sat to Publish immediately, everything works as expected.