ap_get_answers_count( mixed $_post = null )
Description #
Return total published answer count.
Parameters #
- $_postmixed (Optional) Post ID, Object or null. Default value: null
Source #
File: includes/qaquery.php
function ap_get_answers_count( $_post = null ) { $_post = ap_get_post( $_post ); if ( $_post && $_post->answers ) { return (int) $_post->answers; } return 0; }
Expand full source code Collapse full source code View on GitHub: includes/qaquery.php:386
Add your comment