__( 'Comments pagination' ), 'class' => $classes, ) ); return sprintf( '', $wrapper_attributes, $content ); } /** * Registers the `core/comments-pagination` block on the server. * * @since 6.0.0 */ function gutenberg_register_block_core_comments_pagination() { register_block_type_from_metadata( __DIR__ . '/comments-pagination', array( 'render_callback' => 'gutenberg_render_block_core_comments_pagination', ) ); } add_action( 'init', 'gutenberg_register_block_core_comments_pagination', 20 );