backend_post_edit
Adds custom content to post-editing page in backend.
Blog
Input (passed by reference)
$params array Post data array.
… your plugin code …
Output
{$backend_post_edit.sidebar}
Custom content for sidebar.
{$backend_post_edit.toolbar}
Custom content displayed at the page top, between post title and content fields.
{$backend_post_edit.editor_tab}
HTML code of a link for users to select custom text editing mode, which must be supported by the plugin.
Blog
Plugin code example
PHP
public function backendPostEdit($params) { waLog::dump($params, 'blog/plugins/' . $this->id . '/backend-post-edit.log'); return [ 'sidebar' => '<div class="custom-mt-16">'._wp('Custom sidebar HTML') . '</div>', 'toolbar' => '<div class="box">'._wp('Custom toolbar HTML') . '</div>', 'editor_tab' => '<a href="">Custom editor tab</a>', ]; }