Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 12:13
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/17db8103c6e17cf86454052b4ad96207 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/17db8103c6e17cf86454052b4ad96207 to your computer and use it in GitHub Desktop.
Hook um_before_submit_form_post
<?php
/**
* Hook: um_before_submit_form_post
*
* Type: action
*
* Description: Fires on the form submit before validation.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-form.php#L424
* @link https://docs.ultimatemember.com/article/1063-umbeforesubmitformpost
*
* @package um\core
* @see um\core\Form::form_init()
* @since 2.0
* @version 3.0
*/
function my_before_submit_form_post() {
// your code here.
}
add_action( 'um_before_submit_form_post', 'my_before_submit_form_post', 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment