Answers_Query::the_answer()
Description #
Setup current answer in loop.
Source #
File: includes/answer-loop.php
public function the_answer() { global $post; $this->in_the_loop = true; if ( -1 === $this->current_post ) { do_action_ref_array( 'ap_query_loop_start', array( &$this ) ); } $post = $this->next_answer(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited setup_postdata( $post ); anspress()->current_answer = $post; }
Expand full source code Collapse full source code View on GitHub: includes/answer-loop.php:132
Add your comment