WP_Block_Processor::get_last_error
Indicates if the last attempt to parse a block comment delimiter failed, if set, otherwise null if the last attempt succeeded.
Method of the class: WP_Block_Processor{}
No Hooks.
Returns
String|null. Error from last attempt at parsing next block delimiter, or null if last attempt succeeded.
Usage
$WP_Block_Processor = new WP_Block_Processor(); $WP_Block_Processor->get_last_error(): ?string;
Changelog
| Since 6.9.0 | Introduced. |
WP_Block_Processor::get_last_error() WP Block Processor::get last error code WP 6.9.1
public function get_last_error(): ?string {
return $this->last_error;
}