backend_sidebar
Allows adding of custom content to the sidebar in the user interface.
Files
Input (passed by reference)
No specific parameters.
… your plugin code …
Output
{$backend_sidebar.%plugin_id%.menu}
HTML code of custom LI elements in the top part of the sidebar menu.
{$backend_sidebar.%plugin_id%.section}
HTML contents of a custom DIV element in the middle part of the sidebar menu.
Files
Plugin code example
PHP
public function backendSidebar() { return [ 'menu' => '<span class="count"></span><a href="javascript:void(0);"><i class="icon16 user"></i>' . _wp('My menu link') . '</a>', 'section' => '<p class="hint align-center">' . _wp('My extra hint.') . '</p>', ]; }