Created
May 19, 2017 05:32
-
-
Save dougbeal/22d9c50a7f61e105e4ce5a623c518da7 to your computer and use it in GitHub Desktop.
This file contains 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 auto_approve_bridgy_comments($approved, $commentdata) { | |
return strpos($commentdata['comment_agent'], 'Bridgy (https://brid.gy/about) AppEngine-Google') !== false ? 1 : $approved; | |
} | |
add_filter('pre_comment_approved', 'auto_approve_bridgy_comments', '99', 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment