Created
November 5, 2022 19:38
-
-
Save yuriinalivaiko/463844b3efc9473b49254f5e06239095 to your computer and use it in GitHub Desktop.
Hook um_before_form
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_before_form | |
* | |
* Type: action | |
* | |
* Description: Fires after opening tag in the form. | |
* May be used to display custom content in the form header. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/templates/login.php#L29 | |
* @link https://docs.ultimatemember.com/article/1059-umbeforeform | |
* | |
* @package um\templates | |
* @see templates/account.php | |
* @see templates/login.php | |
* @see templates/register.php | |
* @see um_profile_content_main() | |
* @since 2.0 | |
* @version 3.0 | |
* | |
* @param array $args Form shortcode arguments. | |
*/ | |
function my_before_form( $args ) { | |
// your code here. | |
} | |
add_action( 'um_before_form', 'my_before_form', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment