Tribe__Editor__Blocks__Abstract::register()

Does the registration for PHP rendering for the Block, important due to being a dynamic Block


Return

(void)


Top ↑

Source

File: src/Tribe/Editor/Blocks/Abstract.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();
	}

Top ↑

Changelog

Changelog
Version Description
4.8 Introduced.