acf_disable_filters()
acf_disable_filters
Disables all filters and returns the previous state.
Хуков нет.
Возвращает
Массив
.
Использование
acf_disable_filters();
Список изменений
С версии 5.4.0 | Введена. |
Код acf_disable_filters() acf disable filters ACF 6.0.4
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; }