
如何为WordPress自定义文章类型创建高级搜索表单
register_block_core_post_author ( No parameters )
register_block_core_post_author: 这个函数用来注册一个新的核心文章作者块。它需要一个设置数组作为参数,以定义该块的行为和外观。
在服务器上注册”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', ) ); }