HEX
Server: Apache/2.4.65 (Unix) OpenSSL/1.1.1k
System: Linux server-manager.elshandawiily.com 4.18.0-553.87.1.el8_10.x86_64 #1 SMP Mon Dec 1 05:11:16 EST 2025 x86_64
User: elshanda (1002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/elshanda/new.elshandawiily.com/wp-content/plugins/pwa/wp-includes/template-loader.php
<?php
/**
 * Loads the correct template based on the visitor's url
 *
 * This contains code that will amend wp-includes/template-loader.php in core.
 *
 * @package PWA
 * @since 0.2
 */

/**
 * Filter template_include to select the offline page.
 *
 * @since 0.2
 *
 * @param string $template Template.
 * @return string Template to include.
 */
function _pwa_filter_template_include( $template ) {
	$located_template = null;
	if ( is_offline() ) {
		$located_template = get_offline_template();
	} elseif ( is_500() ) {
		$located_template = get_500_template();
	}
	if ( $located_template ) {
		$template = $located_template;
	}
	return $template;
}
add_filter( 'template_include', '_pwa_filter_template_include' );