/wp-tsnippets

A bunch of various (useful) code snippets, etc for creating Wordpress themes and plugins

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

Wordpress T'Snippets

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).

Usage

The majority of the snippets are to be placed in the functions.php file of a Wordpress theme and/or in a plugin.

Snippets

  • Allow SVG File Uploads
  • Customize Archive Templates Title
  • Responsive Bootstrap Images
  • Responsive Bootstrap Videos

Supported PHP and WP versions

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.

License & Disclaimer

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.