register_block_core_comment_author_name

函式
register_block_core_comment_author_name ( No parameters )

register_block_core_comment_author_name: 這個函式註冊了一個顯示評論作者名字的塊。它包括自定義顯示作者姓名的選項,例如是否連結到作者的網站,以及是否以連結方式顯示作者姓名。

在伺服器上註冊”core/comment-author-name”塊。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function register_block_core_comment_author_name() {
register_block_type_from_metadata(
__DIR__ . '/comment-author-name',
array(
'render_callback' => 'render_block_core_comment_author_name',
)
);
}
function register_block_core_comment_author_name() { register_block_type_from_metadata( __DIR__ . '/comment-author-name', array( 'render_callback' => 'render_block_core_comment_author_name', ) ); }
function register_block_core_comment_author_name() {
	register_block_type_from_metadata(
		__DIR__ . '/comment-author-name',
		array(
			'render_callback' => 'render_block_core_comment_author_name',
		)
	);
}

常見問題

FAQs
檢視更多 >