Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress snippet. Link images and documents to the file instead of the attachment page. This also changes the 'View' link in the Media Library admin screen. Add to a new plugin file or to the functions.php in your theme.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment