How to have a PluginDocumentSettingPanel initially opened?
-
I have added a PluginDocumentSettingPanel plugin to my WP plugin.
Is there a way to have the panel initially opened?const { registerPlugin } = wp.plugins; const { PluginDocumentSettingPanel } = wp.editPost; const MyDocumentSettingTest = () => ( <PluginDocumentSettingPanel className="my-document-setting-plugin" title="My Panel"> <p>My Document Setting Panel</p> </PluginDocumentSettingPanel> ); registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } );The PluginPostPublishPanel has a property initialOpen that can be set to true but that isn’t available/working for PluginDocumentSettingPanel.
Is there still a way to achieve the same for a PluginPostPublishPanel plugin?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘How to have a PluginDocumentSettingPanel initially opened?’ is closed to new replies.