Skip to content

Repository files navigation

WordPress Snippets

A small collection of beginner-friendly WordPress snippets organized by category.

Included Snippets

Snippet Category File
Current Year Shortcode Shortcodes current-year-shortcode/current-year-shortcode.php
Change Login Logo to Site Logo Admin change-login-logo/change-login-logo.php
Disable XML-RPC Security disable-xml-rpc/disable-xml-rpc.php

How to Use

  1. Open the folder of the snippet you want.
  2. Copy the PHP code.
  3. Add it using a code snippets plugin, a child theme's functions.php, or a custom functionality plugin.
  4. Activate and test it on a WordPress staging site before using it on a live website.

Note

When pasting into some WordPress code snippet plugins, you may need to remove the opening <?php tag.

When saving as a real .php file in GitHub, keep the opening <?php tag.

About

A collection of free blocks and patterns for using in Themes and websites

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages