HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux box12.multicloud.host 4.18.0-553.52.1.el8_10.x86_64 #1 SMP Wed May 14 09:36:12 EDT 2025 x86_64
User: kashmira (1008)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /home/kashmira/public_html/razitahir.com/wp-content/themes/upress/inc/jetpack.php
<?php
/**
 * Jetpack Compatibility File
 * See: https://jetpack.me/
 *
 * @package UrduPress
 */

/**
 * Add theme support for Infinite Scroll.
 * See: https://jetpack.me/support/infinite-scroll/
 */
function unews_jetpack_setup() {
	add_theme_support( 'infinite-scroll', array(
		'container' => 'main',
		'render'    => 'unews_infinite_scroll_render',
		'footer'    => 'page',
	) );
} // end function unews_jetpack_setup
add_action( 'after_setup_theme', 'unews_jetpack_setup' );

/**
 * Custom render function for Infinite Scroll.
 */
function unews_infinite_scroll_render() {
	while ( have_posts() ) {
		the_post();
		get_template_part( 'template-parts/content', get_post_format() );
	}
} // end function unews_infinite_scroll_render