serialize_block_attributes
serialize_block_attributes ( $block_attributes )
Parameters:- (array) block_attributes Attributes object.
Returns:- (string) Serialized attributes.
Defined at: - Introduced in WordPress: 5.3.1
- Deprecated in WordPress: —
Description
Given an array of attributes, returns a string in the serialized attributes
format prepared for post content.The serialized result is a JSON-encoded string, with unicode escape sequence
substitution for characters which might otherwise interfere with embedding
the result in an HTML comment.