WordPress.org

Ready to get started?Download WordPress

Forums

How to add a menu in the admin backend (2 posts)

  1. sunside
    Member
    Posted 7 years ago #

    Hi.

    I writing a plugin and need to place a custom menu withing the "Write Post" screen. I've searched around but couldn't find any information on that. How can that be accomplished programmatically?
    Any ideas?

    Regards,
    Markus

  2. sunside
    Member
    Posted 7 years ago #

    Okay, I managed it.

    There are several hooks for that: dbx_page_advanced and dbx_post_advanced are hooks for menus right under the edit box. They seem to be expandable, whereas their counterparts edit_page_form (for pages) and edit_form_advanced (for posts) are not.

    To add menus to the edit sidebar, one has to hook into dbx_page_sidebar or dbx_post_sidebar.

    A related file is wp-admin/edit-page-form.php.

Topic Closed

This topic has been closed to new replies.

About this Topic