has_loop_records

Loop-related functions

Summary

has_loop_records(string $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 butis an empty array, unlike get_loop_records(), which will return the emptyarray.

Parameters:
  • $recordsVar (string) –
Returns:

bool

Usage

Examples

See Also