Skip to:
Content

bbPress.org

Changeset 4305


Ignore:
Timestamp:
11/02/2012 07:30:55 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Introduce bbp_user_register() and bbp_profile_update() sub-actions.
  • See #1939.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/sub-actions.php

    r4249 r4305  
    238238
    239239/**
    240  * The main action for hooking into a user saving their profile
    241  *
    242  * @since bbPress (r4235)
     240 * The main action for hooking into when a user account is updated
     241 *
     242 * @since bbPress (r4304)
     243 *
    243244 * @param int $user_id ID of user being edited
    244  * @uses do_action() Calls 'bbp_edit_user_profile_update'
    245  */
    246 function bbp_edit_user_profile_update( $user_id = 0 ) {
    247     do_action( 'bbp_edit_user_profile_update', $user_id );
     245 * @param array $old_user_data The old, unmodified user data
     246 * @uses do_action() Calls 'bbp_profile_update'
     247 */
     248function bbp_profile_update( $user_id = 0, $old_user_data = array() ) {
     249    do_action( 'bbp_profile_update', $user_id, $old_user_data );
     250}
     251
     252/**
     253 * The main action for hooking into a user being registered
     254 *
     255 * @since bbPress (r4304)
     256 * @param int $user_id ID of user being edited
     257 * @uses do_action() Calls 'bbp_user_register'
     258 */
     259function bbp_user_register( $user_id = 0 ) {
     260    do_action( 'bbp_user_register', $user_id );
    248261}
    249262
Note: See TracChangeset for help on using the changeset viewer.