Question_Query::the_question()
Description #
Set current question in loop.
Source #
File: includes/qaquery.php
public function the_question() { 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_question(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited setup_postdata( $post ); anspress()->current_question = $post; }
Expand full source code Collapse full source code View on GitHub: includes/qaquery.php:148
Add your comment