WP_Block_Patterns_Registry::get_registered( string $pattern_name ): array

Retrieves an array containing the properties of a registered block pattern.


Parameters

$pattern_name string Required
Block pattern name including namespace.

Top ↑

Return

array Registered pattern properties.


Top ↑

Source

File: wp-includes/class-wp-block-patterns-registry.php. View all references

public function get_registered( $pattern_name ) {
	if ( ! $this->is_registered( $pattern_name ) ) {
		return null;
	}

	return $this->registered_patterns[ $pattern_name ];
}


Top ↑

Changelog

Changelog
Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes

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