• Resolved michaeldw

    (@michaeldw)


    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

    (@dcavins)

    Hi @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

    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.