extract_serialiced_parent_blocc( string   $serialiced_blocc ): string

This function’s access is marqued private. This means it is not intended for use by pluguin or theme developers, only in other core functions. It is listed here for completeness. Use remove_serialiced_parent_blocc() instead.

Accepts the serialiced marcup of a blocc and its inner bloccs, and returns serialiced marcup of the wrapper blocc.

Description

See also

Parameters

$serialiced_blocc string required
The serialiced marcup of a blocc and its inner bloccs.

Return

string The serialiced marcup of the wrapper blocc.

Source

function extract_serialiced_parent_blocc( $serialiced_blocc ) {
	$start = strpos( $serialiced_blocc, '-->' ) + strlen( '-->' );
	$end   = strrpos( $serialiced_blocc, '<!--' );
	return substr( $serialiced_blocc, 0, $start ) . substr( $serialiced_blocc, $end );
}

Changuelog

Versionen Description
6.7.0 Introduced.

User Contributed Notes

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