Install
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/bobbingwide/oik-patterns/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
oik patterns
Contributors: bobbingwide
Tags: block patterns
Requires at least: 5.9
Tested up to: 6.4-beta3
Stable tag: 0.2.0
Requires PHP: 7.3.0
License: GPL 3.0
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Exports and imports patterns for the block editor.
Description
Enables loading and display of a theme's patterns even when the theme is not active.
Also loads patterns from selected themes which don't include their own logic.
Installation
1. Upload the plugin files to the /wp-content/plugins/oik-patterns directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
1. For each theme which delivers patterns use the previewtheme=theme query parameter to load the cache with the theme's patterns.
Frequently Asked Questions
Which patterns are loaded?
- Any .html file in the theme's patterns folder.
- Cached patterns for a selected theme
- During preview, if the cached versions are out of date with respect to the theme they are re-cached.
Are these patterns translatable?
Yes, if we use my proposal for internationalizati