frontend_nav

Adds custom content to storefront navigation bar.

Shop-Script

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$frontend_nav.%plugin_id%}

Custom HTML code.

Shop-Script

Plugin code example

PHP

public function frontendNav()
{
    return '<a href="'.wa()->getRouteUrl('shop/frontend').'myplugin/'.'">'._wp('My frontend nav link').'</a>';
}