acf/location/rule_match/(param) хук-фильтрACF 1.0

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

add_filter( 'acf/location/rule_match/(param)', 'wp_kama_acf_location_rule_match_param_filter', 10, 4 );

/**
 * Function for `acf/location/rule_match/(param)` filter-hook.
 * 
 * @param  $result      
 * @param  $rule        
 * @param  $screen      
 * @param  $field_group 
 *
 * @return 
 */
function wp_kama_acf_location_rule_match_param_filter( $result, $rule, $screen, $field_group ){

	// filter...
	return $result;
}
$result
-
$rule
-
$screen
-
$field_group
-

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

acf_match_location_rule()
acf/location/rule_match/(param)
acf/includes/locations.php 268
$result = apply_filters( "acf/location/rule_match/{$rule['param']}", $result, $rule, $screen, $field_group );

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

acf/includes/locations/abstract-acf-legacy-location.php 24
add_filter( "acf/location/rule_match/{$this->name}", array( $this, 'rule_match' ), 5, 3 );