acf_has_done()ACF 5.3.2

acf_has_done

This function will return true if this action has already been done

Хуков нет.

Возвращает

(true|false).

Использование

acf_has_done( $name );
$name (обязательный)
-

Список изменений

С версии 5.3.2 Введена.

Код acf_has_done() ACF 6.0.4

function acf_has_done( $name ) {

	// return true if already done
	if ( acf_raw_setting( "has_done_{$name}" ) ) {
		return true;
	}

	// update setting and return
	acf_update_setting( "has_done_{$name}", true );
	return false;
}