Created
November 4, 2022 12:56
-
-
Save yuriinalivaiko/b9d9412388fee8ec2b772d0f72f5e2b9 to your computer and use it in GitHub Desktop.
Hook um_user_edit_profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hook: um_user_edit_profile | |
* | |
* Type: action | |
* | |
* Description: Fires on the profile form successful submit. | |
* Used in the core to update member's profile data. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/um-actions-profile.php#L1529 | |
* @link https://docs.ultimatemember.com/article/1296-umusereditprofile | |
* | |
* @package um\core | |
* @see um_submit_form_profile() | |
* @see um_user_edit_profile() | |
* @since 2.0 | |
* @version 3.0 | |
* | |
* @param array $args Form arguments. | |
*/ | |
function my_user_edit_profile( $args ) { | |
// your code here. | |
} | |
add_action( 'um_user_edit_profile', 'my_user_edit_profile', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment