WP_Block_Processor::get_last_json_errorpublicWP 6.9.0

Indicates if the last attempt to parse a block’s JSON attributes failed.

Method of the class: WP_Block_Processor{}

No Hooks.

Returns

Int. JSON_ERROR_ code from last attempt to parse block JSON attributes.

Usage

$WP_Block_Processor = new WP_Block_Processor();
$WP_Block_Processor->get_last_json_error(): int;

Notes

  • See: \json_last_error()

Changelog

Since 6.9.0 Introduced.

WP_Block_Processor::get_last_json_error() code WP 6.9.1

public function get_last_json_error(): int {
	return $this->last_json_error;
}