Is acf/location/screen implemented in version 4?
I can’t get it to work.
I copied
add_filter('acf/location/screen', 'acf_location_screen_options', 10, 2);
function acf_location_screen_options( $options, $field_group ) {
//print_obj($field_group);
$options['field_group_id'] = $field_group['ID'];
return $options;
}
from your tutorial.
When I do this in my new created location matching rule:
add_filter('acf/location/rule_match/bewegingsrichting', 'bewegingsrichting', 10, 3);
function bewegingsrichting( $match, $rule, $options ){
?>
<pre>
<?php print_r($obj);?>
</pre>
<?php
}
I see the options, but I don’t see the new element. The rule as such works OK;
thanks
Rob
That hook was added in V 5.3.5, so that means no, it’s not available in ACF4