• Antipole

    (@antipole)


    Hi… I have been using the plugins bbPress Moderation and Pending submission Notifications on my site. They work for me but have some drawbacks (1) when a topic or reply is approved, no notification was being sent. (2) There is no visual feedback to the user when a topic or reply is held for moderation. I have fixed (1) by adding some code to Pending Submissions Notifications (see below).

    I have now discovered bbPress Moderation Tools and would like to use it instead. I really like the options available and that pending topic/replies are visible to the author and admins. However, I have a couple of problems.

    (A) A pending reply cannot be edited in the front end, even by an Admin. [This is not essential as it can be done in the backend.]

    (B) If a topic or reply is approved in the backend, no notifications are sent to subscribers. [Given (A) approval in the backend is essential.]

    I fixed the problem (1) above by adding some code to a copy of Pending Submission Notifications. The plugin hooks onto the transition_post_status action and thus gets fired whenever a post status changes whether in the front or backend. I have a modified copy here. You can see the code I added at lines 66 et seq. I have the reply bit commented out because bbPress handles notifications.

    I suggest that bbPress Moderation Tools hook onto the transition_post_status action as I do in the above code. It would then work whether approval is given in the front or backends.

    What say you?

  • The topic ‘Approval in backend and other comments’ is closed to new replies.