acf/json/load_paths хук-фильтрACF 6.2

Filters the path(s) used to load JSON from.

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

add_filter( 'acf/json/load_paths', 'wp_kama_acf_json_load_paths_filter' );

/**
 * Function for `acf/json/load_paths` filter-hook.
 * 
 * @param array $paths An array of potential paths to load JSON from.
 *
 * @return array
 */
function wp_kama_acf_json_load_paths_filter( $paths ){

	// filter...
	return $paths;
}
$paths(массив)
An array of potential paths to load JSON from.

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

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

Где вызывается хук

ACF_Local_JSON::get_load_paths()
acf/json/load_paths
acf/includes/local-json.php 85
return (array) apply_filters( 'acf/json/load_paths', $paths );

Где используется хук в Advanced Custom Fields PRO

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