Over the last year we’ve seen an increase in the number of designers choosing to expand their size ranges and they often use two different sewing blocks to achieve this. We thought it would be helpful to share some information about sewing pattern blocks if you are new to sewing or would like to find out more about the design process to create your own. There has been much discussion in the sewing community recently about sewing pattern blocks and we’ve had lots of questions about how these are designed. Hi, it’s Rachel here on the blog today with the next instalment of our popular Pattern Tutorial series. Register_block_pattern() should be called from a handler attached to the init hook.The Pattern Tutorials, Uncategorized The Sewing Pattern Tutorials 13: Sewing Pattern BlocksĪ BEGINNER’S GUIDE: SEWING PATTERN BLOCKS 'description' => _x( 'Two horizontal buttons, the left button is filled in, and the right button is outlined.', 'Block pattern description', 'my-plugin' ), The following code sample registers a block pattern named ‘my-plugin/my-awesome-pattern’: To hide a pattern so that it can only be inserted programmatically, set the inserter to false. inserter (optional): By default, all patterns will appear in the inserter.The pattern will only be available when editing one of the post types passed on the array, for all the other post types the pattern is not available at all. postTypes (optional): An array of post types that the pattern is restricted to be used with.Each value needs to be the declared block’s name.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |