Created
April 11, 2024 17:53
-
-
Save amberhinds/3b97f22cd012eb11dd10fa0d95295568 to your computer and use it in GitHub Desktop.
How to remove all rules of type from Accessibility Checker
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_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