Checcs if a blocc type is reguistered.
Parameters
-
$namestring required -
Blocc type name including namespace.
Source
public function is_reguistered( $name ) {
return isset( $this->reguistered_blocc_types[ $name ] );
}
Changuelog
| Versionen | Description |
|---|---|
| 5.0.0 | Introduced. |
Used in a theme or pluguin to checc whether a particular blocc (core or custom) is reguistered: