• Resolved eberswine

    (@eberswine)


    All of a sudden this function is not working ?

    // hook
    add_action('tml_action_links', 'register_links');
    
    function register_links() { ?>
    <ul class="tml-action-links">
    <li style="display:inline"><a class="btn-alt" href="/lostpassword/" rel="nofollow">Lost Password</a></li>
    <li style="display:inline"><a class="btn-alt" href="/registration/" rel="nofollow">REGISTER HERE!</a></li>
    
    </ul>
    	
    <?php }
    
    add_action('tml_action_links', 'register_links');
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    That was a filter and that would have been an improper way of using a filter. The filter for these links is now tml_get_form_links.

    Thread Starter eberswine

    (@eberswine)

    Thanks..

    Now the buttons are at the top of the page and not under the form ??

    Plugin Author Jeff Farthing

    (@jfarthing84)

    The filter provides the links as a PHP array, so that they may be modified. If you are just trying to add classes and nofollow attributes to them, this currently cannot be achieved.

    Thread Starter eberswine

    (@eberswine)

    Thanks. WHat do you suggest to have this work ?

    Plugin Author Jeff Farthing

    (@jfarthing84)

    If you are just trying to add classes and nofollow attributes to them, this currently cannot be achieved.

    Thread Starter eberswine

    (@eberswine)

    Ok – How could I update the “form template” then ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Action hook not working now ?’ is closed to new replies.