block_version()

block_version()函数是Wordpress函数,返回内容字符串使用的块格式的当前版本。

block_version( string $content )

说明(Description)

如果字符串不包含块,则返回0。


参数(Parameters)

参数类型必填说明
$content(string)必需要测试的内容。

返回(Return)

(int)如果内容包含一个或多个块,则块格式版本为1,否则为0。


源码(Source)

//暂无
更新版本源码位置使用被使用
5.0.0wp-includes/blocks.php:5801 function1 function
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索