acf/pre_load_value хук-фильтрACF 1.0

Allow filter to short-circuit load_value logic.

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

add_filter( 'acf/pre_load_value', 'wp_kama_acf_pre_load_value_filter', 10, 3 );

/**
 * Function for `acf/pre_load_value` filter-hook.
 * 
 * @param  $null    
 * @param  $post_id 
 * @param  $field   
 *
 * @return 
 */
function wp_kama_acf_pre_load_value_filter( $null, $post_id, $field ){

	// filter...
	return $null;
}
$null
-
$post_id
-
$field
-

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

acf_get_value()
acf/pre_load_value
acf/includes/acf-value-functions.php 55
$value = apply_filters( 'acf/pre_load_value', null, $post_id, $field );

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

acf/includes/forms/form-customizer.php 236
add_filter( 'acf/pre_load_value', array( $this, 'pre_load_value' ), 10, 3 );
acf/includes/forms/form-user.php 203
add_filter( 'acf/pre_load_value', array( $this, 'filter_pre_load_value' ), 10, 3 );