AB Pattern Defaults
Map Wordpress post types to use a block theme pattern as a default when creating content, allowing scaffolding of content.
by Affinity Bridge · github.com/bmx269/ab-pattern-defaults · website
★ 0stars
0forks
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/bmx269/ab-pattern-defaults/archive/refs/heads/master.zipDeclares an update source (false), so updates arrive through the plugin's own updater.
From the readme
AB Pattern Defaults
Set a default block pattern for any post type's new-post editor. Database-stored patterns take priority over file-registered patterns.
- Requires: WordPress 6.5+, PHP 8.0+
- License: GPL-2.0-or-later
- Author: Affinity Bridge
Overview
AB Pattern Defaults adds a settings page where you can assign a block pattern to each registered post type. When a new post of that type is created, the editor is pre-populated with the pattern's content — no more blank canvas.
Features
- Settings page under Settings → AB Pattern Defaults
- Lists every public post type on the site
- Accepts either a database pattern slug (Saved Pattern) or a file-registered pattern name
- Database patterns take priority over file-registered patterns
- Live status indicator confirms whether each configured slug resolves to a real pattern
- Clean uninstall — removes its option when the plugin is deleted
Installation
1. Copy the ab-pattern-defaults folder into wp-content/plugins/, or upload the zip via Plugins → Add New → Upload Plugin.
2. Activate the plugin from the Plugins screen.
3. Visit Settings → AB Pattern Defaults and enter the pattern slug for each post type you want to pre-populate.