Block::register_block()
Registers the Calendar embed block.
Source
File: src/Events_Pro/Blocks/Calendar/Block.php
public function register_block() {
if ( ! file_exists( Tribe__Events__Pro__Main::instance()->pluginPath . 'src/resources/js/blocks/calendar-embed/index.js' ) ) {
return;
}
register_block_type( Tribe__Events__Pro__Main::instance()->pluginPath . 'src/resources/js/blocks/calendar-embed' );
$this->setup_assets();
}
Changelog
| Version | Description |
|---|---|
| 7.2.0 | Introduced. |