ap_questions_answer_ids( integer $question_id )
Description #
Get the IDs of answer by question ID.
Parameters #
- $question_idinteger (Required) Question post ID.
Source #
File: includes/functions.php
function ap_questions_answer_ids( $question_id ) { global $wpdb; $ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type = 'answer' AND post_parent=%d", $question_id ) ); // phpcs:ignore WordPress.DB return $ids; }
Expand full source code Collapse full source code View on GitHub: includes/functions.php:1082
Add your comment