首页 WordPress函数大全 block_version()

block_version()

2020-05-02 / 2274阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

block_version( string $content )

返回内容字符串正在使用的块格式的当前版本。

描述

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

参数

$content

(string)
(Required)
Content to test.

返回

(int) The block format version is 1 if the content contains one or more blocks, 0 otherwise.

大家谈论
    我的见解