Skip to content

Instantly share code, notes, and snippets.

@amberhinds
Created April 11, 2024 17:49
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/295e0881bda5fd40f7d1ff3dc7fd25ff to your computer and use it in GitHub Desktop.
Save amberhinds/295e0881bda5fd40f7d1ff3dc7fd25ff to your computer and use it in GitHub Desktop.
How to remove a specific rule from Accessibility Checker Scans
function my_rule_filter($rules){
$rules = edac_remove_element_with_value($rules, 'slug', 'slider_present'); // Replace the slug with the slug of the rule you want to remove.
return $rules;
}
add_filter('edac_filter_register_rules','my_rule_filter');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment