acf/location/rule_match/(param)
Usage
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
- -
Where the hook is called
acf/location/rule_match/(param)
acf/includes/locations.php 279
$result = apply_filters( "acf/location/rule_match/{$rule['param']}", $result, $rule, $screen, $field_group );
Where the hook is used in Advanced Custom Fields PRO
acf/includes/locations/abstract-acf-legacy-location.php 32
add_filter( "acf/location/rule_match/{$this->name}", array( $this, 'rule_match' ), 5, 3 );