AnsPress_Query::have()
Description #
Check if loop has objects.
Source #
File: includes/class-query.php
public function have() {
if ( $this->current + 1 < $this->count ) {
return true;
} elseif ( $this->current + 1 === $this->count ) {
do_action( 'ap_loop_end' );
// Do some cleaning up after the loop.
$this->rewind();
}
$this->in_the_loop = false;
return false;
}
Expand full source code Collapse full source code View on GitHub: includes/class-query.php:178
Add your comment