WordPress.org

Ready to get started?Download WordPress

Forums

Feature Request - Page Top Hook (Between Messages/Notices and the Content) (1 post)

  1. SilbinaryWolf
    Member
    Posted 1 year ago #

    In wp-admin/edit-form-advanced.php

    I suggest that a hook is added so that HTML can be inserted between the Page Title (ie "Edit Post", "Edit Page"), Notices/Messages ("saved successfully, etc") and the Title Editor box (ie. "Enter title here")

    Just underneath line 254, something along these lines:

    <?php if ( $notice ) : ?>
    <div id="notice" class="error"><p><?php echo $notice ?></p></div>
    <?php endif; ?>
    <?php if ( $message ) : ?>
    <div id="message" class="updated"><p><?php echo $message; ?></p></div>
    <?php endif; ?>
    <strong><?php do_action('post_header_html'); ?></strong>
    <form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>

    An action like 'post_header_html' and 'post_header_html-<posttype>' would allow for more flexibility on adding tab systems, and other potential UI improvements in the header.

    For a visualization of how I would use such a hook, see:
    http://i.imgur.com/DsPaX.png
    http://wordpress.org/extend/plugins/ultimate-metabox-tabs/

    Which currently uses some hacky CSS to get it properly positioned there (I would prefer to avoid javascript implementations as it detracts from the clients experience, especially considering most my clients use the terrible Internet Explorer browsers, despite my warnings)

    To Long Didn't Read: I want to be able to echo HTML in this area of a WordPress post page.

    http://i.imgur.com/DsPaX.png

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.