Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | 1x 7x 1x 8x 1x 9x | import { JetpackLogo } from '@automattic/jetpack-shared-extension-utils/icons';
import { getCategories, setCategories } from '@wordpress/blocks';
import { __ } from '@wordpress/i18n';
// We're moving Form specific blocks to a new 'Forms' category
// that should appear before the 'monetize' and 'grow' categories
setCategories( [
...getCategories().filter( ( { slug } ) => slug !== 'contact-form' ),
{
slug: 'contact-form',
title: __( 'Forms', 'jetpack' ),
icon: <JetpackLogo />,
},
] );
setCategories( [
...getCategories().filter( ( { slug } ) => slug !== 'monetize' ),
// Add a Monetize block category
{
slug: 'monetize',
title: __( 'Monetize', 'jetpack' ),
icon: <JetpackLogo />,
},
] );
setCategories( [
...getCategories().filter( ( { slug } ) => slug !== 'grow' ),
// Add a Grow block category
{
slug: 'grow',
title: __( 'Grow', 'jetpack' ),
icon: <JetpackLogo />,
},
] );
|