diff --git a/packages/editor/src/components/post-actions/index.js b/packages/editor/src/components/post-actions/index.js index 953975c3aafeca..b3a6cee47d31f2 100644 --- a/packages/editor/src/components/post-actions/index.js +++ b/packages/editor/src/components/post-actions/index.js @@ -18,6 +18,11 @@ import { moreVertical } from '@wordpress/icons'; import { unlock } from '../../lock-unlock'; import { usePostActions } from './actions'; import { store as editorStore } from '../../store'; +import { + TEMPLATE_POST_TYPE, + TEMPLATE_PART_POST_TYPE, + PATTERN_POST_TYPE, +} from '../../store/constants'; const { DropdownMenuV2: DropdownMenu, @@ -71,6 +76,15 @@ export default function PostActions( { onActionPerformed } ) { { primaryActions: [], secondaryActions: [] } ); }, [ actions, item ] ); + if ( + [ + TEMPLATE_POST_TYPE, + TEMPLATE_PART_POST_TYPE, + PATTERN_POST_TYPE, + ].includes( postType ) + ) { + return null; + } return (