Wordpress T'Snippets (Wordpress Theme Snippets) is a bunch of useful code snippets for creating custom Wordpress themes, etc.
Feel free to contact me or open a Github Issue for questions, concerns and/or improvements. I am always willing to learn from others! :)
Some of these snippets I have found elsewhere (with compatible licenses) and use frequently so I have placed here (with my own tweaks/edits in most cases).
The majority of the snippets are to be placed in the functions.php
file of a Wordpress theme and/or in a plugin.
- Allow SVG File Uploads
- Customize Archive Templates Title
- Responsive Bootstrap Images
- Responsive Bootstrap Videos
These snippets are tested with and written for Wordpress 5.6.1 and PHP 8.0. These snippets may or may not work with other versions.
Wordpress T'Snippets is licensed under the GNU GPLv2 License, so feel free to use them in your own projects.
Please note that there is NO WARRANTY whatsoever for this code and I cannot be held liable for any damages, losses, etc that may arise from the use of these code snippets -as stated by the GNU GPLv2 License.