WP_Block_Pattern_Categories_Registry::is_registered

Advertisement

Summery Summery

Checks if a pattern category is registered.

Syntax Syntax

WP_Block_Pattern_Categories_Registry::is_registered( string $category_name )

Parameters Parameters

$category_name

(Required) Pattern category name.

Return Return

(bool) True if the pattern category is registered, false otherwise.

Source Source

File: wp-includes/class-wp-block-pattern-categories-registry.php

	public function is_registered( $category_name ) {
		return isset( $this->registered_categories[ $category_name ] );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Advertisement

Leave a Reply