WP_Block_Processor::get_attributes
Returns a lazy wrapper around the block attributes, which can be used for efficiently interacting with the JSON attributes.
This stub hints that there should be a lazy interface for parsing block attributes but doesn’t define it. It serves both as a placeholder for one to come as well as a guard against implementing an eager function in its place.
Method of the class: WP_Block_Processor{}
No Hooks.
Returns
never.
Usage
$WP_Block_Processor = new WP_Block_Processor(); $WP_Block_Processor->get_attributes();
Notes
- See: self::allocate_and_return_parsed_attributes()
Changelog
| Since 6.9.0 | Introduced. |
WP_Block_Processor::get_attributes() WP Block Processor::get attributes code WP 7.0
public function get_attributes() {
throw new Exception( 'Lazy attribute parsing not yet supported' );
}