Title: Validate post before publishing
Last modified: March 27, 2021

---

# Validate post before publishing

 *  Resolved [michaeldw](https://wordpress.org/support/users/michaeldw/)
 * (@michaeldw)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/validate-post-before-publishing/)
 * Hello to the team,
    thanks for this amazing plug-in. Is it possible to validate
   a post/doc before getting published?
 * Thanks,
    Michael

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/validate-post-before-publishing/#post-14312869)
 * Hi [@michaeldw](https://wordpress.org/support/users/michaeldw/), Yes you can 
   add a snippet that will put all new docs in the “pending” category, then have
   your site admins come along and publish them. Once published, the author can 
   continue to edit the doc and it will stay published. Here’s the snippet of code:
   [https://gist.github.com/dcavins/65154f3f39c1a8cf8e78dadd2992a6a7](https://gist.github.com/dcavins/65154f3f39c1a8cf8e78dadd2992a6a7)
 * You can add the new function and action hook to bp-custom.php or wherever you
   keep code customizations. Site admins can see “awaiting moderation” docs in the
   front-end doc library or in wp-admin at `/wp-admin/edit.php?post_status=bp_docs_pending&
   post_type=bp_doc`

Viewing 1 replies (of 1 total)

The topic ‘Validate post before publishing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-docs.svg)
 * [BuddyPress Docs](https://wordpress.org/plugins/buddypress-docs/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-docs/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-docs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-docs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-docs/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Cavins](https://wordpress.org/support/users/dcavins/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/validate-post-before-publishing/#post-14312869)
 * Status: resolved