WP_Block_Type_Registry::is_registered

Advertisement

Summery Summery

Checks if a block type is registered.

Syntax Syntax

WP_Block_Type_Registry::is_registered( string $name )

Parameters Parameters

$name

(Required) Block type name including namespace.

Return Return

(bool) True if the block type is registered, false otherwise.

Source Source

File: wp-includes/class-wp-block-type-registry.php

	 */
	public function is_registered( $name ) {
		return isset( $this->registered_block_types[ $name ] );

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply