wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



serialize_blocks › WordPress Function

Od5.3.1
Przestarzałyn/a
serialize_blocks ( $blocks )
Parametry:
  • (array[]) $blocks An array of representative arrays of parsed block objects. See serialize_block().
    Wymagane: Tak
Powrót:
  • (string) String of rendered HTML.
Zdefiniowane na:
Codex:

Returns a joined string of the aggregate serialization of the given parsed blocks.



Źródło

function serialize_blocks( $blocks ) {
	return implode( '', array_map( 'serialize_block', $blocks ) );
}