Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add a contextual description beneath the popup 'post_title' custom field
<?php
add_action( 'edit_form_before_permalink', 'popup_post_title_contextual_message' );
/**
* Add a contextual description beneath the popup 'post_title' custom field.
*
* @since 1.7
*
* @param WP_Post $post Post object.
*
* @return string
*/
function popup_post_title_contextual_message( $post ) {
$message = sprintf(
_e( '<label><span class="pum-desc desc">' .
'(Required) Register a popup name. The CSS class ‘popmake-{popup-name}’ can be used to set a trigger to display a popup.' .
'<span></label>', 'popup-maker' ) );
return $message;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.