Change 2FA Login Button Text On Click
-
Good Day,
How can we change the 2FA login button feedback (when clicked) from a faded button to a button text that says: “Processing…”?
Details: https://prnt.sc/2DJcZwQN54Q9
Currently, we’re using the code snippet provided below to change WordPress’ “Log In” button text on click and it works great.
Details: https://prnt.sc/9pLuH5BgAXyA
We applied the equivalent Wordfence (overlay) form class and ID to our code snippet (provided below as well), but it doesn’t work. What are we doing wrong?
Note: We requested a similar request in the past, but received no response to this specific request.
Thank you!
————————–
Code Snippet To Change WordPress’ Login Button Text On Click (works great):
add_action( 'login_enqueue_scripts', 'login_enqueue_js' );
function login_enqueue_js() {
wp_register_script( 'button-handle', '', array("jquery"), '', true );
wp_enqueue_script( 'button-handle' );
wp_add_inline_script( 'button-handle', '(function($){$("#loginform input#wp-submit").on("click", function() {$(this).val("Processing…");});})(jQuery);');
}WordPress Main Login Parameters: https://prnt.sc/tHhAHpned7Ix
Code Snippet to Change Wordfence’s 2FA Overlay Login Button Text On Click (does not work):
add_action( 'login_enqueue_scripts', 'login_enqueue_wf_js' );
function login_enqueue_wf_js() {
wp_register_script( 'button-handle', '', array("jquery"), '', true );
wp_enqueue_script( 'button-handle' );
wp_add_inline_script( 'button-handle', '(function($){$("#loginform input#wfls-token-submit").on("click", function() {$(this).val("Processing…");});})(jQuery);');
}Wordfence 2FA Login Button Parameters: https://prnt.sc/WfIquKAFic8S
- The topic ‘Change 2FA Login Button Text On Click’ is closed to new replies.