ap_count_other_answer( false|int $question_id = false )
Description #
Count all answers excluding best answer.
Parameters #
- $question_idfalse | int (Optional) Question id. Default value: false
Source #
File: includes/answer-loop.php
function ap_count_other_answer( $question_id = false ) { if ( ! $question_id ) { $question_id = get_question_id(); } $count = ap_get_answers_count( $question_id ); if ( ap_have_answer_selected( $question_id ) ) { return (int) ( $count - 1 ); } return (int) $count; }
Expand full source code Collapse full source code View on GitHub: includes/answer-loop.php:392
Add your comment