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
-
$contentstring required -
Content to test.
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.