Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 12:11
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/27c2b6936058cacc3234ce7107644048 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/27c2b6936058cacc3234ce7107644048 to your computer and use it in GitHub Desktop.
Hook um_login_form_button_two
<?php
/**
* Hook: um_login_form_button_two
*
* Type: filter
*
* Description: Change the Login Form secondary button text.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/um-actions-login.php#L386
* @link https://docs.ultimatemember.com/article/1167-umloginformbuttontwo
*
* @package um\core
* @see um_add_submit_button_to_login()
* @since 2.0
* @deprecated since version 3.0
*
* @param string $secondary_btn_word Button text.
* @param array $args Login Form arguments.
*
* @return string Button text.
*/
function my_login_form_button_two( $secondary_btn_word, $args ) {
// your code here.
return $secondary_btn_word;
}
add_filter( 'um_login_form_button_two', 'my_login_form_button_two', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment