Core Class
View Source on Trac ↗
Core Class
WP_Block
class WP_Block
// Constructor: function Object() { [native code] } Class representing a parsed instance of a block.
Methods 7 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructor.
Parameters: $block: mixed, $available_context: mixed, $registry: mixed |
| refresh_context_dependents() void | Updates the context for the current block and its inner blocks. |
| refresh_parsed_block_dependents() void | Updates the parsed block content for the current block and its inner blocks. |
| __get() (array | Returns a value from an inaccessible property.
Parameters: $name: mixed |
| process_block_bindings() array | Processes the block bindings and updates the block attributes with the values from the sources. |
| replace_html() string | Depending on the block attribute name, replace its value in the HTML based on the value provided.
Parameters: $block_content: string, $attribute_name: string, $source_value: mixed |
| render() string | Generates the render output for the block.
Parameters: $options: mixed |
Properties
| Property / Type | Description |
|---|---|
| $parsed_block mixed public | No description available. |
| $name mixed public | No description available. |
| $block_type mixed public | No description available. |
| $context mixed public | No description available. |
| $available_context mixed public | No description available. |
| $registry mixed public | No description available. |
| $inner_blocks mixed public | No description available. |
| $inner_html mixed public | No description available. |
| $inner_content mixed public | No description available. |
Class Information
Since Version
5.5.0
Source File
wp-includes/class-wp-block.php
Advertisement