Created
April 11, 2024 17:49
-
-
Save amberhinds/295e0881bda5fd40f7d1ff3dc7fd25ff to your computer and use it in GitHub Desktop.
How to remove a specific rule from Accessibility Checker Scans
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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