• Resolved kmeronuk

    (@kmeronuk)


    Is there a hook to be able to change the default button text? For example, change “Log In” to “Sign In”

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    Try this:

    
    function modify_tml_login_button() {
        if ( $button = tml_get_form_field( 'login', 'submit' ) ) {
            $button->set_value( 'Sign In' );
        }
    }
    add_action( 'init', 'modify_tml_login_button' );
    
    Thread Starter kmeronuk

    (@kmeronuk)

    Perfect, thanks Jeff

    I had the exact same problem, and this code snippet totally fixed it. Thank you so much!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change form button text’ is closed to new replies.