has_blocks()
has_blocks( int|string|WP_Post|null $post = null ) 确定po…
has_blocks( int|string|WP_Post|null $post = null )
确定post或content字符串是否有块。
Determine whether a post or content string has blocks.
目录锚点:#说明#参数#返回#源码
说明(Description)
另见函数 parse_blocks()
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 | 
|---|---|---|---|
| $post | (int | string | WP_Post | null) | 可选 | Post内容、Post ID或Post对象。默认为全局$post。 | 
返回(Return)
(bool)帖子是否有块。
源码(Source)
| 更新版本 | 源码位置 | 使用 | 被使用 | 
|---|---|---|---|
| 5.0.0 | wp-includes/blocks.php:56 | 4 | 1 function | 
类别:WordPress 函数手册、 
		本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

还没有任何评论,赶紧来占个楼吧!