How to Remove Rules (filter parameter documentation)?
-
Hi ??
I am attempting to filter out a few rules, where Accessibility Checker triggers a violation due to how my theme is coded, of course after double-checking that the WCAG requirements are actually met, and keeping an eye on those areas using other tools.
Looking at the documentation at https://equalizedigital.com/accessibility-checker/how-to-remove-rules/ the filter looks like this:
add_filter('ac_filter_rules','my_rule_filter'); function my_rule_filter($rules){ $rules = ac_remove_element_with_value($rules, 'slug', 'slider_present'); return $rules; }
a) Is there a place, where I can look up the parameters for the different rules? In the example, I guess the filter targets the “Slider Present” rule. I’m specifically looking into filtering out the “Insufficient Color Contrast”, the “Empty or Missing Form Label” and possible the “Broken Skip or Anchor Link” rules.
b) Also, I guess the ‘slug’ parameter, targets a specific URL. Is there a way, to target all posts and/or pages or a post type?
Hope you can help.
Kind regards
BjarneThe page I need help with: [log in to see the link]
- The topic ‘How to Remove Rules (filter parameter documentation)?’ is closed to new replies.