Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!
Merry Christmas and Happy Holidays! 🎄
Hello wpForo Support Team,
I’m developing a plugin that integrates wpForo with Telegram to send notifications when a post is approved (i.e., when its status changes from "Not Approved" (status = 1) to "Approved" (status = 0)). I’m currently using the wpforo_after_add_post hook to detect new posts, but this hook does not fire when a post’s status is updated (e.g., during moderation approval).
Could you please tell me which hook or event is triggered when a post’s status changes, specifically when a post is approved by a moderator? I’ve tried wpforo_after_update_post and wpforo_after_approve_post, but they don’t seem to work in my setup (wpForo version [2.1.6]).
Thank you for your help!
Best regards, Stanislav
Hi @aima-forum ,
You can use the wpforo_post_status_update action hook, it has two parameters:
do_action( 'wpforo_post_status_update', $post, $status );
Please note that if $status === 1 the post is unapproved, if it's $status === 0 the post is approved.