How to add own link to "Useful Links" block in member's area

From aMember Pro Documentation
Revision as of 03:32, 9 August 2013 by Caesar (talk | contribs)
Jump to: navigation, search

Add this code to site.php file:


<?php 
Am_Di::getInstance()->hook->add(Am_Event::GET_MEMBER_LINKS, 'getLinks');
function getLinks(Am_Event $event){
    $event->addReturn('LINK TITLE', '/url/');
}