Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-- Replace WPUF Registration form Login/LostPass --#
- function login_lost_pass_script(){
- ?>
- <script>
- jQuery(document).ready(function(){
- var login = jQuery('ul.wpuf-form li:last-child a:nth-child(2)').text();
- var lostPass = jQuery('ul.wpuf-form li:last-child a:nth-child(3)').text();
- if(login === 'Log In'){
- jQuery('ul.wpuf-form li:last-child a:nth-child(2)').text('Home');
- jQuery('ul.wpuf-form li:last-child a:nth-child(2)').removeAttr('href').attr('href', 'https://dokan.test/');
- }
- if(lostPass === 'Lost Password'){
- jQuery('ul.wpuf-form li:last-child a:nth-child(3)').text('My Account');
- jQuery('ul.wpuf-form li:last-child a:nth-child(3)').removeAttr('href').attr('href', 'https://dokan.test/my-account/');
- }
- });
- </script>
- <?php
- }
- add_action('wp_head', 'login_lost_pass_script', 11);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement