acf_disable_filters()ACF 5.4.0

acf_disable_filters

Disables all filters and returns the previous state.

Хуков нет.

Возвращает

Массив.

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

acf_disable_filters();

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

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

Код acf_disable_filters() ACF 5.10.2

function acf_disable_filters() {

	// Get state.
	$prev_state = acf_get_filters();

	// Set all modifers as false.
	acf_set_filters( array_map( '__return_false', $prev_state ) );

	// Return prev state.
	return $prev_state;
}