RAV Site Snippets
Library of everyday Wordpress code snippets, each a unique php file, that can be enabled / disabled via simple settings page.
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/hughc/wordpress-code-snippets/archive/refs/heads/master.zipReadme
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_titlecustom field (falls back to post title).
Plugin coded by Qwen3.6-plus, prompted, validated and tested by me.