Patterns block
Plugin that adds a block with variations for the registered block patterns in your installation. With that, you can add block patterns directly from t …
Maintenance 20/1001842d since update
Active installs
0
Downloads
452
Reviews
0
Age
5.0y
Plugin info
Total downloads: 452
Active installs: 0
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 3 language(s)
Contributors: 2
Last updated: 12/16/2020 (1842 days ago)
Added to WordPress: 12/16/2020 (5 years old)
Minimum WordPress version: 5.6
Tested up to WordPress version: 5.6.13
Minimum PHP version: 7.3
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 1842 days ago
20/100
Is Patterns block abandoned?
Possibly abandoned (last update 1842 days ago).
Compatibility
Requires WordPress: 5.6
Tested up to: 5.6.13
Requires PHP: 7.3
Languages
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
No similar plugins found yet.
Description
Plugin that adds a block with variations for the registered block patterns in your installation. With that, you can add block patterns directly from the block inserter or with the / command.
When inserting the Patterns block, you can select the pattern you want from a list of all patterns.
Plugin development happens on GitHub
Filters
The plugin has two filters:
/**
* Filter that allows to set a default variation.
* With that, the patterns block cannot be selected from the inserter,
* but only the variations.
*
* @param string Name of the variation to use as default.
*/
$default_variation_name = (string) apply_filters(
'krautpress_patterns_block_default_variation_name',
''
);
/**
* Filter the variations to show/use in the block.
*
* @param array $variation_data {
* Array of variation data objects. Object looks like that:
* (object) [
* 'name' => $pattern['name'],
* 'title' => $pattern['title'],
* 'attributes' => (object) [
* 'pattern' => $pattern['name'],
* ],
* ];
*
* $pattern['name'] must match the 'name' of a pattern.
* $pattern['title'] is displayed to the user.
* }
*/
$variation_data = (array) apply_filters(
'krautpress_patterns_block_variations_data',
$variation_data
);
0.1.0
Initial release
Installation
- Install plugin.
- Activate it.
- You should be able to add patterns directly from the inserter.
Frequently Asked Questions
No FAQ available
Review feed
No reviews available
Screenshots
No screenshots available
Changelog
No changelog available