Last active
May 9, 2019 14:26
-
-
Save RachelRVasquez/4d044b61d90b242c74eeef93cc769192 to your computer and use it in GitHub Desktop.
Add text above publish button in publish metabox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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