frontend_my_nav

Adds custom items to main navigation menu in customer account.

Shop-Script

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$frontend_my_nav.%plugin_id%}

HTML code for adding a new menu item, which will be inserted inside a <li></li> tag.

Shop-Script

Plugin code example

PHP

public function frontendMyNav()
{
    $view_helper = new waViewHelper(wa()->getView());
    return '<a href="'.$view_helper->myUrl().'myplugin/">'._wp('My plugin‘s nav link').'</a>';
}