Skip to content

Instantly share code, notes, and snippets.

@mrbobbybryant
Created January 27, 2015 21:07
Show Gist options
  • Save mrbobbybryant/46f90933e6c46dc4c287 to your computer and use it in GitHub Desktop.
Save mrbobbybryant/46f90933e6c46dc4c287 to your computer and use it in GitHub Desktop.
Fake WordPress metabox after title and above editor
<?php
function dwwp_after_title_sudo_metabox() {
$screen = get_current_screen();
$edit_post_type = $screen->post_type;
if ( 'job' != $edit_post_type ) {
return;
}
?>
<div class="after-title-help postbox">
<h3 class='hndle'>Using this screen</h3>
<div class="inside">
<p>Use this screen to add new or edit existing articles</p>
</div>
</div>
<?php
}
add_action( 'edit_form_after_title', 'dwwp_after_title_sudo_metabox' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment