ap_get_answers_count( mixed $_post = null )

Description #

Return total published answer count.

Parameters #

  • $_post
    mixed (Optional) Post ID, Object or null. Default value: null

Source #

File: includes/qaquery.php

386
387
388
389
390
391
392
function ap_get_answers_count( $_post = null ) {
    $_post = ap_get_post( $_post );
    if ( $_post && $_post->answers ) {
        return (int) $_post->answers;
    }
    return 0;
}

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