BP_Activity_Component::blocks_init( array $blocks = array() )

Register the BP Activity Blocks.


Parameters Parameters

$blocks

(array) (Optional) See BP_Component::blocks_init() for description.

Default value: array()


Source Source

File: bp-activity/classes/class-bp-activity-component.php

	public function blocks_init( $blocks = array() ) {
		parent::blocks_init(
			array(
				'bp/embed-activity' => array(
					'name'               => 'bp/embed-activity',
					'editor_script'      => 'bp-embed-activity-block',
					'editor_script_url'  => plugins_url( 'js/blocks/embed-activity.js', dirname(  __FILE__ ) ),
					'editor_script_deps' => array(
						'wp-blocks',
						'wp-element',
						'wp-i18n',
						'wp-components',
						'wp-block-editor',
						'wp-data',
						'wp-compose',
					),
				),
			)
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.