Activity::have_group_items()
Description #
Check if there are items in a group.
Source #
File: includes/class/class-activity.php
public function have_group_items() { $next = $this->current + 1; // Return if no item in that index. if ( ! isset( $this->objects[ $next ] ) ) { return false; } $next_obj = $this->objects[ $next ]; if ( is_object( $next_obj ) && $this->object->q_id == $next_obj->q_id ) { // phpcs:ignore Universal.Operators.StrictComparisons.LooseEqual return true; } return false; }
Expand full source code Collapse full source code View on GitHub: includes/class/class-activity.php:320
Add your comment