SO网友:Yuval A.
如果用户已更新,则调用此操作,并使用以下参数:
\'profile_update\', $user_id, $old_user_data );
以下是来自的相关代码user.php
在里面wp_insert_user()
if ( $update ) {
/**
* Fires immediately after an existing user is updated.
*
* @since 2.0.0
*
* @param int $user_id User ID.
* @param WP_User $old_user_data Object containing user\'s data prior to update.
*/
do_action( \'profile_update\', $user_id, $old_user_data );
} else {
/**
* Fires immediately after a new user is registered.
*
* @since 1.5.0
*
* @param int $user_id User ID.
*/
do_action( \'user_register\', $user_id );
}