Are you tired of people always saying ‘guys’ when they’re talking to a mixed gender group of people? I know I am. One weekend I got four (yes four) comments about my code saying “You guys should…” or “Ask the guys who …” and so on.
All implied I wasn’t the human who wrote the code. Spoiler alert. I was. While I can’t fix the world out there, I do tend to reply with a handy gif:
But I can fix MY site. Since I only need this for comments on my site (I’m in charge of how I write), I can use this:
add_filter( 'comment_text' , 'hey_you_gays', 11 ); function hey_you_gays( $text ) { static $dblq = false; if ( false === $dblq ) $dblq = _x('“', 'opening curly quote'); return str_replace( array( ' guys', '‘guys', $dblq . 'guys', '> guys', '(guys' ), array( ' guys', '‘gays', $dblq . 'gays', '> gays', '(gays' ), $text ); }
If you need to use it in titles and post content, steal the code from capital_P_dangit(). After all, that’s what we do.