Tribe__Editor__Blocks__Abstract::block_data()

Returns the block data for the block editor.


Return

(array<string,mixed>) The block editor data.


Top ↑

Source

File: src/Tribe/Editor/Blocks/Abstract.php

	public function block_data() {
		$block_data = [
			'id' => $this->slug(),
		];

		/**
		 * Filters the block data.
		 *
		 * @since 4.12.0
		 *
		 * @param array  $block_data The block data.
		 * @param object $this       The current object.
		 */
		$block_data = apply_filters( 'tribe_block_block_data', $block_data, $this );

		/**
		 * Filters the block data for the block.
		 *
		 * @since 4.12.0
		 *
		 * @param array  $block_data The block data.
		 * @param object $this       The current object.
		 */
		$block_data = apply_filters( 'tribe_block_block_data_' . $this->slug(), $block_data, $this );

		return $block_data;
	}

Top ↑

Changelog

Changelog
Version Description
4.12.0 Introduced.