is_post_closed( boolean|integer $post_id = null )
Description #
Check if question is closed.
Parameters #
- $post_idboolean | integer (Optional) question or answer ID. Default value: null
Source #
File: includes/theme.php
function is_post_closed( $post_id = null ) { if ( '1' === ap_get_post_field( 'closed', $post_id ) ) { return true; } return false; }
Expand full source code Collapse full source code View on GitHub: includes/theme.php:95
Add your comment