acf/json/save_paths
Filters the paths used to save JSON.
Использование
add_filter( 'acf/json/save_paths', 'wp_kama_acf_json_save_paths_filter', 10, 2 );
/**
* Function for `acf/json/save_paths` filter-hook.
*
* @param array $paths An array of the potential paths to save JSON to.
* @param array $post The ACF field group, post type, or taxonomy array.
*
* @return array
*/
function wp_kama_acf_json_save_paths_filter( $paths, $post ){
// filter...
return $paths;
}
- $paths(массив)
- An array of the potential paths to save JSON to.
- $post(массив)
- The ACF field group, post type, or taxonomy array.
Список изменений
| С версии 6.2 | Введена. |
Где вызывается хук
acf/json/save_paths
acf/includes/local-json.php 210
return (array) apply_filters( 'acf/json/save_paths', $paths, $post );