acf_loop::is_looppublicACF 5.3.2

is_loop

This function will return true if a loop exists for the given array index

Method of the class: acf_loop{}

No Hooks.

Returns

(true|false).

Usage

$acf_loop = new acf_loop();
$acf_loop->is_loop( $i );
$i
.

Changelog

Since 5.3.2 Introduced.

acf_loop::is_loop() code ACF 6.0.4

function is_loop( $i = 0 ) {

	return isset( $this->loops[ $i ] );

}