Changeset 5291 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
- Timestamp:
- 04/09/2017 05:34:20 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r5280 r5291 48 48 // Honor i18n number formatting. 49 49 add_filter( 'bbp_number_format', array( $this, 'number_format_i18n' ), 10, 5 ); 50 51 // Store moderator's username on approve/unapprove actions.52 add_action( 'bbp_approved_topic', array( $this, 'store_moderator_username' ) );53 add_action( 'bbp_approved_reply', array( $this, 'store_moderator_username' ) );54 add_action( 'bbp_unapproved_topic', array( $this, 'store_moderator_username' ) );55 add_action( 'bbp_unapproved_reply', array( $this, 'store_moderator_username' ) );56 50 } 57 51 … … 375 369 return $formatted_number; 376 370 } 377 378 /**379 * Store moderator's username on approve/unapprove actions.380 *381 * @param int $post_id Post ID.382 */383 public function store_moderator_username( $post_id ) {384 update_post_meta( $post_id, '_wporg_bbp_moderator', wp_get_current_user()->user_login );385 }386 387 371 }
Note: See TracChangeset
for help on using the changeset viewer.