register_block_core_query_pagination_next

函数
register_block_core_query_pagination_next ( No parameters )

register_block_core_query_pagination_next: 这个函数用来注册WordPress块编辑器中的分页块的”下一个”按钮。它用于导航到由查询返回的文章或其他内容的下一页。

在服务器上注册”core/query-pagination-next”块。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function register_block_core_query_pagination_next() {
register_block_type_from_metadata(
__DIR__ . '/query-pagination-next',
array(
'render_callback' => 'render_block_core_query_pagination_next',
)
);
}
function register_block_core_query_pagination_next() { register_block_type_from_metadata( __DIR__ . '/query-pagination-next', array( 'render_callback' => 'render_block_core_query_pagination_next', ) ); }
function register_block_core_query_pagination_next() {
	register_block_type_from_metadata(
		__DIR__ . '/query-pagination-next',
		array(
			'render_callback' => 'render_block_core_query_pagination_next',
		)
	);
}

常见问题

FAQs
查看更多 >