Question_Query::pre_fetch()
Description #
Pre fetch current users vote on all answers
Source #
File: includes/qaquery.php
public function pre_fetch() { $this->get_ids(); ap_prefetch_recent_activities( $this->ap_ids['post_ids'] ); ap_user_votes_pre_fetch( $this->ap_ids['post_ids'] ); ap_post_attach_pre_fetch( $this->ap_ids['attach_ids'] ); // Pre fetch users. if ( ! empty( $this->ap_ids['user_ids'] ) ) { ap_post_author_pre_fetch( $this->ap_ids['user_ids'] ); } do_action( 'ap_pre_fetch_question_data', $this->ap_ids ); }
Expand full source code Collapse full source code View on GitHub: includes/qaquery.php:238
Add your comment