Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Last active November 6, 2022 16:05
Show Gist options
  • Select an option

  • Save yuriinalivaiko/cd9b348402ed0f5ff54d4d9fcb1b5bb3 to your computer and use it in GitHub Desktop.

Select an option

Save yuriinalivaiko/cd9b348402ed0f5ff54d4d9fcb1b5bb3 to your computer and use it in GitHub Desktop.
Hook um_after_form_fields
<?php
/**
* Hook: um_after_form_fields
*
* Type: action
*
* Description: Fires before closing tag in the form.
* Used in the core to display GDRP and add hidden fields to the form.
* May be used to display custom content in the form footer.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/templates/login.php#L92
* @link https://docs.ultimatemember.com/article/1018-umafterformfields
*
* @package um\templates
* @see templates/login.php
* @see templates/password-change.php
* @see templates/password-reset.php
* @see templates/register.php
* @see um_profile_content_main()
* @since 2.0
* @deprecated since version 3.0
*
* @param array $args Form shortcode arguments.
*/
function my_after_form_fields( $args ) {
// your code here.
}
add_action( 'um_after_form_fields', 'my_after_form_fields', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment