Skip to content

Instantly share code, notes, and snippets.

@RachelRVasquez
Last active May 9, 2019 14:26
Show Gist options
  • Save RachelRVasquez/4d044b61d90b242c74eeef93cc769192 to your computer and use it in GitHub Desktop.
Save RachelRVasquez/4d044b61d90b242c74eeef93cc769192 to your computer and use it in GitHub Desktop.
Add text above publish button in publish metabox
add_action( 'post_submitbox_misc_actions', 'add_help_text_to_publish' );
function add_help_text_to_publish( $post_obj ) {
global $post;
//whatever custom post type
if ( 'custom-post-type' === $post->post_type ) {
echo '<p style="padding-left: 15px;"><strong>Note:</strong> Some helpful text here.</p>';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment