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