ap_post_status( boolean|integer $post_id = false )

Description #

Get post status.

Parameters #

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

Changelog #

VersionDescription
2.0.0Introduced.

Source #

File: includes/theme.php

52
53
54
55
56
57
58
function ap_post_status( $post_id = false ) {
    if ( false === $post_id ) {
        $post_id = get_the_ID();
    }
 
    return get_post_status( $post_id );
}

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