screens as $screen ) {
add_meta_box(
'help',
__( 'Help', 'affcoupon' ),
array( $this, 'add_meta_box_callback' ),
$screen,
'side',
'high'
);
}
}
/**
* Generates the HTML for the meta box
*
* @param object $post WordPress post object
*
* @since 1.0
*/
public function add_meta_box_callback( $post ) {
wp_nonce_field( 'shortcodes_data', 'shortcodes_nonce' );
$this->generate_fields( $post );
}
/**
* Generates the field's HTML for the meta box.
*
* @since 1.0
*/
public function generate_fields( $post ) {
$output = '';
// First fragment retains an inline
from translation; wp_kses_post() (applied below) preserves
.
$output .= '
' . wp_kses_post( __( 'Need Any Help?
Follow our ', 'affcoupon' ) ) . '' . esc_html__( 'Documentation', 'affcoupon' ) . '' . esc_html__( ' or', 'affcoupon' ) . '' . esc_html__( ' contact us', 'affcoupon' ) . '.
' . esc_html__( 'If you need any help please feel free to ask any question if you need farther. ', 'affcoupon' ); $output .= '
' . esc_html__( 'We would love to work on your ideas.', 'affcoupon' ) . '
'; $output .= '~ William James