PostType

"testPost": {
"type": "string",
"default": ""
}
import {
TwebBlockPostTypeControl,
} from '@tigriweb/components/attributes';
<TwebBlockPostTypeControl
label={ __('Post Label', 'your-theme-name') }
help={ __('Post Description', 'your-theme-name') }
postType="post"
name="testPost"
{...{ attributes, setAttributes }}
/>
Last updated
Was this helpful?