Skip to content

Instantly share code, notes, and snippets.

@Rarst
Last active December 27, 2019 10:34
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rarst/ff97bd47ade48fbff84f to your computer and use it in GitHub Desktop.
Save Rarst/ff97bd47ade48fbff84f to your computer and use it in GitHub Desktop.
Doge snippet for WordPress
<?php
add_filter('gettext',fn($t)=>
@$t[4]&&@$GLOBALS['wp_locale']
?["Such $t","Very $t",'Wow'][rand(0,2)]
:$t);
@calevans
Copy link

calevans commented Mar 8, 2017

Remember kiddies, what Uncle Cal always says “Ugly code is unmaintainable code.”

@Rarst
Copy link
Author

Rarst commented Oct 17, 2017

Shhh, my perfect doge snippet, don’t listen to Cal, you are beautiful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment