is_private_post( boolean|integer $post_id = false )

Description #

Check if current post is private.

Parameters #

  • $post_id
    boolean | integer (Optional) question or answer ID. Default value: false

Source #

File: includes/theme.php

function is_private_post( $post_id = false ) {
	if ( ap_post_status( $post_id ) === 'private_post' ) {
		return true;
	}

	return false;
}

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