Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save phlbnks/3c0ad682d4392d02000b to your computer and use it in GitHub Desktop.
Save phlbnks/3c0ad682d4392d02000b to your computer and use it in GitHub Desktop.
@phlbnks
Copy link
Author

phlbnks commented Apr 21, 2015

Dropping this in to functions.php in a WordPress theme will detect all Twitter usernames and hashtags and link them to appropriate pages on Twitter. Customise the class on the link if you want styling control.

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