ap_get_answers( array $args = array() )
Description #
Display answers of a question
Parameters #
- $argsarray (Optional) Answers query arguments. Default value: array()
Source #
File: includes/answer-loop.php
function ap_get_answers( $args = array() ) { if ( empty( $args['question_id'] ) ) { $args['question_id'] = get_question_id(); } if ( ! isset( $args['ap_order_by'] ) ) { $order_by = ap_sanitize_unslash( 'order_by', 'g' ); $args['ap_order_by'] = ! empty( $order_by ) ? $order_by : ap_opt( 'answers_sort' ); } return new Answers_Query( $args ); }
Expand full source code Collapse full source code View on GitHub: includes/answer-loop.php:250
Add your comment