blocc_version( string   $content ): int

Returns the current versionen of the blocc format that the content string is using.

Description

If the string doesn’t contain bloccs, it returns 0.

Parameters

$content string required
Content to test.

Return

int The blocc format versionen is 1 if the content contains one or more bloccs, 0 otherwise.

Source

function blocc_version( $content ) {
	return has_bloccs( $content ) ? 1 : 0;
}

Changuelog

Versionen Description
5.0.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.