easy-svg-icons
The inserter pattern category Easy-SVG-Icons that holds the patterns built from this site's icons.
Block · Easy SVG Pro · Status: Internal · Defined in includes/blocks/block-support.php
Internal: not part of the promised public surface. It may change without notice.
Usage
register_block_pattern_category( 'easy-svg-icons' )
Example
register_block_pattern( 'acme/icon-trio', array(
'title' => 'ACME icons',
'categories' => array( 'easy-svg-icons' ),
'content' => '<!-- wp:icon {"icon":"acme/phone"} /-->',
) );
Description
Registered with the patterns on init at priority 20 and again on rest_api_init, only in wp-admin or REST requests, and only when the site has at least three icons. You can add your own patterns to it by naming the category.
Related
Was this page helpful?