Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 12:10
Show Gist options
  • Save yuriinalivaiko/812ea94d4b82a3eb7a2a1247fdc9715d to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/812ea94d4b82a3eb7a2a1247fdc9715d to your computer and use it in GitHub Desktop.
Hook um_login_form_button_one
<?php
/**
* Hook: um_login_form_button_one
*
* Type: filter
*
* Description: Change the Login Form primary button text.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/um-actions-login.php#L358
* @link https://docs.ultimatemember.com/article/1166-umloginformbuttonone
*
* @package um\core
* @see um_add_submit_button_to_login()
* @since 2.0
* @version 3.0
*
* @param string $primary_btn_word Button text.
* @param array $args Login Form arguments.
*
* @return string Button text.
*/
function my_login_form_button_one( $primary_btn_word, $args ) {
// your code here.
return $primary_btn_word;
}
add_filter( 'um_login_form_button_one', 'my_login_form_button_one', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment