View::set_has_next_event( boolean $value )
Sets the has_next_event boolean flag, which determines if we have events in the next page.
Contents
This flag is required due to being required to optimize the determination of whether there are future events, we increased events_per_page by +1 during setup_repository_args. Because of that if the number of events returned are greater than events_per_page, we need to pop an element off the end and set a boolean.
Parameters
- $value
-
(boolean) (Required) Which value will be set to has_next_event, will be casted as boolean.
Return
(mixed) Value passed after being saved and casted as boolean.
Source
File: src/Tribe/Views/V2/View.php
public function set_has_next_event( $value ) {
return $this->has_next_event = (bool) $value;
}
Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |