ap_get_best_answer( integer $question_id = false )
Description #
Get selected answer object
Parameters #
- $question_idinteger (Optional) Question ID. Default value: false
Source #
File: includes/answer-loop.php
function ap_get_best_answer( $question_id = false ) { if ( false === $question_id ) { $question_id = get_question_id(); } $args = array( 'only_best_answer' => true, 'question_id' => $question_id, ); return new Answers_Query( $args ); }
Expand full source code Collapse full source code View on GitHub: includes/answer-loop.php:281
Add your comment