Support

Account

Home Forums Backend Issues (wp-admin) Custom location rule operators not showing up in rule_match Reply To: Custom location rule operators not showing up in rule_match

  • I’m sorry, my mistake.

    I had wrong filters for rule_match. Here’s the right code:

    
    # Should we display this in a Page?
    function acf_location_rules_match_wpml_page( $match, $rule, $options ) {
        var_dump([$match, $rule, $options]);
    }
    add_filter('acf/location/rule_match/wpml_page', 'acf_location_rules_match_wpml_page', 1, 3);
    

    It works now.
    Thanks!