2020-05-02 / 5446阅 / 悠然
注册块类型。
(string|WP_Block_Type)
(Required)
Block type name including namespace, or alternatively a complete WP_Block_Type instance. In case a WP_Block_Type is provided, the $args parameter will be ignored.
(array)
(Optional)
Array of block type arguments. Any arguments may be defined, however the>
Default value: array()
(WP_Block_Type|false) The registered block type on success, or false on failure.