ap_post_status_badge( boolean|integer $post_id = false )

Description #

Return description of a post status.

Parameters #

  • $post_id
    boolean | integer (Optional) Post ID. Default value: false

Source #

File: includes/post-status.php

function ap_post_status_badge( $post_id = false ) {
	$ret = '<postmessage>';
	$msg = ap_get_post_status_message( $post_id );

	if ( ! empty( $msg ) ) {
		$ret .= $msg;
	}

	$ret .= '</postmessage>';

	return $ret;
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment