Changeset 6529 for trunk/src/includes/core/actions.php
- Timestamp:
- 06/12/2017 05:41:49 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/actions.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/actions.php
r6369 r6529 155 155 156 156 // Before Delete/Trash/Untrash Forum 157 add_action( 'wp_trash_post', 'bbp_trash_forum' );158 add_action( 'trash_post', 'bbp_trash_forum' );159 add_action( 'untrash_post', 'bbp_untrash_forum' );160 add_action( ' delete_post','bbp_delete_forum' );157 add_action( 'wp_trash_post', 'bbp_trash_forum' ); 158 add_action( 'trash_post', 'bbp_trash_forum' ); 159 add_action( 'untrash_post', 'bbp_untrash_forum' ); 160 add_action( 'before_delete_post', 'bbp_delete_forum' ); 161 161 162 162 // After Deleted/Trashed/Untrashed Forum … … 184 184 185 185 // Before Delete/Trash/Untrash Reply 186 add_action( 'wp_trash_post', 'bbp_trash_reply' );187 add_action( 'trash_post', 'bbp_trash_reply' );188 add_action( 'untrash_post', 'bbp_untrash_reply' );189 add_action( ' delete_post','bbp_delete_reply' );186 add_action( 'wp_trash_post', 'bbp_trash_reply' ); 187 add_action( 'trash_post', 'bbp_trash_reply' ); 188 add_action( 'untrash_post', 'bbp_untrash_reply' ); 189 add_action( 'before_delete_post', 'bbp_delete_reply' ); 190 190 191 191 // After Deleted/Trashed/Untrashed Reply … … 206 206 207 207 // Before Delete/Trash/Untrash Topic 208 add_action( 'wp_trash_post', 'bbp_trash_topic' );209 add_action( 'trash_post', 'bbp_trash_topic' );210 add_action( 'untrash_post', 'bbp_untrash_topic' );211 add_action( ' delete_post','bbp_delete_topic' );208 add_action( 'wp_trash_post', 'bbp_trash_topic' ); 209 add_action( 'trash_post', 'bbp_trash_topic' ); 210 add_action( 'untrash_post', 'bbp_untrash_topic' ); 211 add_action( 'before_delete_post', 'bbp_delete_topic' ); 212 212 213 213 // After Deleted/Trashed/Untrashed Topic … … 293 293 add_action( 'bbp_unapproved_reply', 'bbp_decrease_topic_reply_count' ); 294 294 add_action( 'bbp_unapproved_reply', 'bbp_increase_topic_reply_count_hidden' ); 295 add_action( 'bbp_deleted_reply', 'bbp_decrease_topic_reply_count_hidden' ); 295 296 296 297 // Users topic & reply counts. … … 310 311 add_action( 'bbp_insert_reply', 'bbp_insert_reply_update_counts', 10, 3 ); 311 312 312 // Update topic voice counts. 313 // Update engagements. 314 add_action( 'bbp_new_topic', 'bbp_update_topic_engagements' ); 315 add_action( 'bbp_new_reply', 'bbp_update_topic_engagements' ); 316 317 // Recalculate engagements. 318 add_action( 'bbp_deleted_topic', 'bbp_recalculate_topic_engagements' ); 319 add_action( 'bbp_deleted_reply', 'bbp_recalculate_topic_engagements' ); 320 321 // Update engagement counts. 313 322 add_action( 'bbp_new_reply', 'bbp_update_topic_voice_count' ); 314 323 add_action( 'bbp_trashed_reply', 'bbp_update_topic_voice_count' ); … … 318 327 add_action( 'bbp_approved_reply', 'bbp_update_topic_voice_count' ); 319 328 add_action( 'bbp_unapproved_reply', 'bbp_update_topic_voice_count' ); 329 add_action( 'bbp_deleted_reply', 'bbp_update_topic_voice_count' ); 320 330 321 331 // Insert reply voice counts.
Note: See TracChangeset
for help on using the changeset viewer.