Skip to content

Instantly share code, notes, and snippets.

@amberhinds
Created April 11, 2024 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amberhinds/3b97f22cd012eb11dd10fa0d95295568 to your computer and use it in GitHub Desktop.
Save amberhinds/3b97f22cd012eb11dd10fa0d95295568 to your computer and use it in GitHub Desktop.
How to remove all rules of type from Accessibility Checker
function my_rule_type_filter($rules){
$rules = edac_remove_element_with_value($rules, 'rule_type', 'warning'); // Removes all warnings
return $rules;
}
add_filter('edac_filter_register_rules','my_rule_type_filter');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment