acf/json/load_paths
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/json/load_paths
acf/includes/local-json.php 85
return (array) apply_filters( 'acf/json/load_paths', $paths );