HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/nylovesu.co.uk/public_html-20250117121003/wp-content/plugins/jetpack/3rd-party/amp.php
<?php
/**
 * This file contains compatibility features for AMP to improve Jetpack feature support.
 *
 * @package automattic/jetpack
 */

namespace Automattic\Jetpack;

/**
 * Load Jetpack_AMP_Support.
 */
function load_3rd_party_amp_support() {
	// Only load the support class when AMP actually initializes.
	// This avoids calls to some slow functions if the plugin is loaded but
	// 'amp_is_enabled' is used to prevent it from initializing.
	require_once JETPACK__PLUGIN_DIR . '/3rd-party/class.jetpack-amp-support.php';

	add_action( 'init', array( 'Jetpack_AMP_Support', 'init' ), 1 );
	add_action( 'admin_init', array( 'Jetpack_AMP_Support', 'admin_init' ), 1 );
}

add_action( 'amp_init', __NAMESPACE__ . '\load_3rd_party_amp_support' );