• Resolved kelwool

    (@kelwool)


    I’d like to add “Wholesale login request” and “Become a retailer” links below the “lost your password?” link under the login.

    I was able to add this text under the short code in a text box on the page, but it doesn’t appear on the page when a user is logged out. (I can see it when I am logged into my WP account).

    Can I add these links in the code? Does anyone know why the additional text wouldn’t appear on the page? thanks

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

    (@jfarthing84)

    
    function add_tml_action_links( $form_name, $form ) {
        if ( 'login' == $form_name ) {
            $form->add_link( 'wholesale', array(
                'text' => 'Wholesale Login Request',
                'url' => 'https://someurl.com',
            ) );
            $form->add_link( 'retailer', array(
                'text' => 'Become a Retailer',
                'url' => 'https://anotherurl.com',
            ) );
        }
    }
    add_action( 'tml_render_form', 'add_tml_action_links', 10, 2 );
    
Viewing 1 replies (of 1 total)

The topic ‘Add additional text below “lost your password”?’ is closed to new replies.