oik-patterns
Patterns loader and cache
by bobbingwide · github.com/bobbingwide/oik-patterns · 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/bobbingwide/oik-patterns/archive/refs/heads/main.zipFrom the readme
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