backend_layout
Allows adding of custom content to user interface pages.
Files
Input (passed by reference)
$params['layout'] filesDefaultLayout Instance of the user interface layout class.
… your plugin code …
Output
Files
Plugin code example
PHP
public function backendLayout($params) { return '<div id="myplugin-template" style="display: none;"> <h1>' . _wp('Dialog title') . '</h1> <p>' . _wp('This dialog is displayed on every page.') . '</p> </div> <script> $(function () { $("#myplugin-template").clone().show().waDialog({ "buttons": "<a href=\"javascript: void(0);\" class=\"cancel button blue\">' . _wp('Close') . '</a>", "height": "150px", "width": "500px" }); }); </script>'; }