WP Manifestindependent plugin directory
manifest / utilities / wordpress-code-snippets

RAV Site Snippets

Library of everyday Wordpress code snippets, each a unique php file, that can be enabled / disabled via simple settings page.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/hughc/wordpress-code-snippets/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WordPress snippet library

One step up from 'a series of things I copy-paste into my functions.php' these implement some of the more common things that many sites need, that do not warrant YAPI (yet another plugin install).

Administration is via Settings > Site Snippets. Snippets have header comments explaining what they do. Add your own, or else delete irrelevant ones, to tighten up the install to suit.

Modules

  • Disable all comments - does what it says
  • Wordpress login rebrand - swap the wordpress logo for your own. Modify the dimensions and path to suit; defaults to logo.svg in your theme directory
  • Allow SVG upload - there are more thorough plugins that mitigate the securoty risks associated with the file type, but if your site does not have user-generated content (uploads from untrusted parties) then this is a simple solution.

ACF Blocks

Each block lives in its own subdirectory under blocks/, with a block.json, render.php, and optional style.css. Blocks are registered via acf_register_block_type() and require ACF (Free or Pro, 5.8+) to be active. Enabled/disabled independently from PHP modules on the same admin page.

  • Short Title — displays the current page's short_title custom field (falls back to post title).

Plugin coded by Qwen3.6-plus, prompted, validated and tested by me.