block_version ( $content )
- (string) content Content to test.
- (int) The block format version is 1 if the content contains one or more blocks, 0 otherwise.
- Introduced in WordPress: 5.0.0
- Deprecated in WordPress: —
Returns the current version of the block format that the content string is using.If the string doesn't contain blocks, it returns 0.