| @@ -285,8 +285,9 @@ | ||
| 285 | 285 | add_action( 'bbp_approved_reply', 'bbp_update_reply_walker' ); |
| 286 | 286 | add_action( 'bbp_unapproved_reply', 'bbp_update_reply_walker' ); |
| 287 | 287 | |
| 288 | 288 | // Update counts from persisted post status changes |
| 289 | +add_action( 'bbp_transition_post_status', 'bbp_update_forum_visibility_on_transition_post_status', 5, 3 ); | |
| 289 | 290 | add_action( 'bbp_transition_post_status', 'bbp_update_counts_on_transition_post_status', 10, 3 ); |
| 290 | 291 | add_action( 'bbp_transition_post_status', 'bbp_update_forum_subforum_count_on_transition_post_status', 10, 3 ); |
| 291 | 292 | |
| 292 | 293 | // Update parent subforum counts after updates and permanent deletion |