is_private_post( boolean|integer $post_id = false )
Description #
Check if current post is private.
Parameters #
- $post_idboolean | 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;
}
Expand full source code Collapse full source code View on GitHub: includes/theme.php:66
Add your comment