register_block_core_post_author

函数
register_block_core_post_author ( No parameters )

register_block_core_post_author: 这个函数用来注册一个新的核心文章作者块。它需要一个设置数组作为参数,以定义该块的行为和外观。

在服务器上注册”core/post-author”区块。

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

常见问题

FAQs
查看更多 >