block_version


block_version ( $content )

Parameters:
  • (string) content Content to test.
Returns:
  • (int) The block format version is 1 if the content contains one or more blocks, 0 otherwise.
Defined at:

Description

Returns the current version of the block format that the content string is using.If the string doesn't contain blocks, it returns 0.

Related Functions

wp_kses_version, wp_check_php_version, wp_check_mysql_version, do_blocks, wp_version_check

Top Google Results

User discussions

wpseek mobile