gutenbergdocs/docs/reference-guides/slotfills/plugin-post-status-info.md

22 lines
600 B
Markdown
Raw Permalink Normal View History

2025-10-21 17:33:45 +00:00
# PluginPostStatusInfo
该插槽用于在文档侧边栏的摘要面板中插入项目。
## 示例
```js
import { registerPlugin } from '@wordpress/plugins';
import { PluginPostStatusInfo } from '@wordpress/editor';
const PluginPostStatusInfoTest = () => (
<PluginPostStatusInfo>
<p>文章状态信息插槽填充</p>
</PluginPostStatusInfo>
);
registerPlugin( 'post-status-info-test', { render: PluginPostStatusInfoTest } );
```
## 位置
![在摘要面板中的位置](https://raw.githubusercontent.com/WordPress/gutenberg/HEAD/docs/assets/plugin-post-status-info-location.png?raw=true)