how to moderate a new post
I am writing an add-on to send a new post into moderation if it met certain criteria.
I am currently using the entity_post_save event listener, to set the post's message_state to 'moderated', by using the $entity->set.
But it doesn't work.
What is the proper way to update the message_state of a post before the transaction is committed?
🔴🔔⚠️⚠️⚠️🔔🔴
☑️Lütfen okumaya devam etmek için giriş yapın veya üye olun.🤝☑️
☑️Please login or register to continue reading.🤝☑️
🔴🔔⚠️⚠️⚠️🔔🔴
I am writing an add-on to send a new post into moderation if it met certain criteria.
I am currently using the entity_post_save event listener, to set the post's message_state to 'moderated', by using the $entity->set.
But it doesn't work.
What is the proper way to update the message_state of a post before the transaction is committed?
🔴🔔⚠️⚠️⚠️🔔🔴
☑️Lütfen okumaya devam etmek için giriş yapın veya üye olun.🤝☑️
☑️Please login or register to continue reading.🤝☑️
🔴🔔⚠️⚠️⚠️🔔🔴
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.