I need to improve this plugin:
This basic plugin works perfectly to register a single WordPress pattern, but I want to include at least 4 of them, for the same new category.
1. Modify file patterns.php to register several patterns for the same category (using sample code).
Example: register_block_pattern_1, register_block_pattern_2, register_block_pattern_3, etc.
2. Create a new category (Example "My Patterns") to display the patterns inside WordPress.
WordPress Reference: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-patterns/
Posted On: February 22, 2022 17:03 UTC
Category: CMS Development
Country: United States
click to apply