GC_Block_Type::render()
最后更新于:2021-11-26 11:07:15
GC_Block_Type::render( array$attributes=array(), string$content=”)Renders the block type output for given attributes.
参数
- $attributes
-
(array) (Optional) Block attributes.
Default value: array()
- $content
-
(string) (Optional) Block content.
Default value: ”
响应
(string) Rendered block type output.
源文件
文件: gc-includes/class-gc-block-type.php
public function render( $attributes = array(), $content = '' ) {
if ( ! $this->is_dynamic() ) {
return '';
}
$attributes = $this->prepare_attributes_for_render( $attributes );
return (string) call_user_func( $this->render_callback, $attributes, $content );
}