@wordpress/e2e-tests
Version:
End-To-End (E2E) tests for WordPress.
21 lines (18 loc) • 459 B
JavaScript
( function () {
const el = wp.element.createElement;
const __ = wp.i18n.__;
const registerPlugin = wp.plugins.registerPlugin;
const PluginPostStatusInfo = wp.editor.PluginPostStatusInfo;
function MyPostStatusInfoPlugin() {
return el(
PluginPostStatusInfo,
{
className: 'my-post-status-info-plugin',
},
__( 'My post status info' )
);
}
registerPlugin( 'my-post-status-info-plugin', {
render: MyPostStatusInfoPlugin,
} );
} )();