register_block_core_post_author_biography

函式
register_block_core_post_author_biography ( No parameters )

register_block_core_post_author_biography: 該函式用於註冊一個新的核心文章作者傳記塊。它需要一個設定陣列作為引數,以定義該塊的行為和外觀。

在伺服器上註冊”core/post-author-biography”塊。

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

常見問題

FAQs
檢視更多 >