acf/pre_save_json_file filter-hookACF 6.1

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_Local_JSON::update_internal_post_type()
acf/pre_save_json_file
acf/includes/local-json.php 256
$post = apply_filters( 'acf/pre_save_json_file', $post );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.