Tribe__Events__Pro__Editor__Blocks__Additional_Field::register()
Does the registration for PHP rendering for the Block, important due to been an dynamic Block
Return
(void)
Source
File: src/Tribe/Editor/Blocks/Additional_Field.php
public function register() {
$block_args = array(
'render_callback' => array( $this, 'render' ),
);
register_block_type( $this->name(), $block_args );
add_action( 'wp_ajax_' . $this->get_ajax_action(), array( $this, 'ajax' ) );
$this->assets();
$this->hook();
}
Changelog
| Version | Description |
|---|---|
| 4.5 | Introduced. |