Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuriinalivaiko/b9d9412388fee8ec2b772d0f72f5e2b9 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/b9d9412388fee8ec2b772d0f72f5e2b9 to your computer and use it in GitHub Desktop.
Hook um_user_edit_profile
<?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