acf/pre_save_json_file
Filters the ACF post before saving it to the file.
Usage
add_filter( 'acf/pre_save_json_file', 'wp_kama_acf_pre_save_json_file_filter' );
/**
* Function for `acf/pre_save_json_file` filter-hook.
*
* @param array $post The main ACF post array
*
* @return array
*/
function wp_kama_acf_pre_save_json_file_filter( $post ){
// filter...
return $post;
}
- $post(array)
- The main ACF post array
Changelog
| Since 6.1 | Introduced. |
Where the hook is called
acf/pre_save_json_file
acf/includes/local-json.php 256
$post = apply_filters( 'acf/pre_save_json_file', $post );