backend_sidebar

Allows adding custom content to the sidebar menu.

Team

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$backend_sidebar.top_li}
Custom >li< element at the top of the sidebar.
{$backend_sidebar.section}
Custom content below the search field.
{$backend_sidebar.bottom_li}
Custom >li< element at the bottom of the sidebar.
Team

Plugin code example

PHP

public function backendSidebar()
{
    return [
        'top_li' => '<li><a href=""><i class="icon16 user"></i>' . _wp('Custom link at the top') . '</a><li>',
        'section' => '<div class="hint align-center">' . _wp('Custom hint in the sidebar.') . '</div>',
        'bottom_li' => '<li><a href=""><i class="icon16 user"></i>' . _wp('Custom link at the bottom') . '</a><li>',
    ];
}