
如何检查和升级您的服务器MySQL版本
render_block_core_term_description ( $attributes )
render_block_core_term_description: 这是一个核心WordPress函数,用于在编辑器中渲染术语描述块。它被用来在网站的前端输出该块的HTML标记。
在服务器上渲染`core/term-description’区块。
function render_block_core_term_description( $attributes ) { $term_description = ''; if ( is_category() || is_tag() || is_tax() ) { $term_description = term_description(); } if ( empty( $term_description ) ) { return ''; } $extra_attributes = ( isset( $attributes['textAlign'] ) ) ? array( 'class' => 'has-text-align-' . $attributes['textAlign'] ) : array(); $wrapper_attributes = get_block_wrapper_attributes( $extra_attributes ); return '<div ' . $wrapper_attributes . '>' . $term_description . '</div>'; }