WP-code was founded in mid 2016 by Nuno Sarmento and is a free resource dedicated to WordPress covering a wide range of topics. With over 100+ WordPress snippets, we also have tutorials, plugins, gallery and deals to enhance all aspects of your WordPress theme or blog. Because WordPress alone would never work by it self we also cover a few topics about servers and WordPress work-flow (control version github, deploy, gulp, standards).

WordPress repository plugins are the most popular and safe way of enchanted the functionality of WordPress. They allow you to change the way that WordPress works and add extra bespoke functionality.

Plugins are functions written in PHP and HTML that are added to your website, the other way to change the functionality of WordPress is to use a code snippet by adding on the WordPress theme.

WordPress code snippets are pieces of code that you add to your website directly.

  • WordPress Snippets that add functionality are commonly added to the theme functions.php file
  • WordPress Snippets that change functionality are sometimes added to a specific theme file e.g. single.php, page.php, search.php etc.
  • WordPress Snippets that change core WordPress functionality are usually added to the wp-config.php file that is located in the root of your WordPress installation i.e. www.yourwebsite.com/wp-config.php


Please be aware that any additional code you add to theme files will be overwritten if you upgrade your WordPress theme.It is therefore prudent to take a note of any snippets you add to your website in a separate location. You should also check out the free WordPress plugin Code Snippets. It can be used to insert code snippets directly into your theme functions.php file.

In this website, I would like to share with you a collection of useful code snippets, tutorials, plugins  for WordPress. I hope you enjoy the website 🙂  and all the code available for you to use and please fell free to share your own code.

Want to share your code on WP-code.uk?

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Start typing and press Enter to search