register_post_meta( 'post_type_name', 'test_categories', array(
'type' => 'array',
'default' => array(),
'single' => true,
'show_in_rest' => array(
'schema' => array(
'type' => 'array',
'items' => array(
'type' => 'number'
)
)
),
) );
import {
TwebMetaTaxonomyMultipleControl,
} from '@tigriweb/components/meta';
<TwebMetaTaxonomyMultipleControl
label={ __('Categories Label', 'your-theme-name') }
help={ __('Categories Description', 'your-theme-name') }
taxonomy="category"
metaKey="test_categories"
/>