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

From aMember Pro Documentation
Revision as of 04:54, 5 February 2016 by Caesar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Add this code to site.php file:

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