has_loop_records
— Check if records have been set to the view for iteration.
Summary
- has_loop_records($recordsVar)
Check if records have been set to the view for iteration.
Note that this function will return false if the records variable is set but is an empty array, unlike get_loop_records(), which will return the empty array.
- Parameters:
$recordsVar (
string
) – View variable to check.
- Returns:
bool