Checks if a block pattern is registered.
Parameters
$pattern_name
stringrequired- Block pattern name including namespace.
Source
public function is_registered( $pattern_name ) {
return isset( $this->registered_patterns[ $pattern_name ] );
}
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.