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!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.