| Server IP : 198.54.115.198 / Your IP : 216.73.216.142 Web Server : LiteSpeed System : Linux server192.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : seatpheu ( 1569) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/seatpheu/public_html/phsarichiba/wp-content/plugins/jetpack/3rd-party/ |
Upload File : |
<?php
/**
* This file contains compatibility features for AMP to improve Jetpack feature support.
*
* @package automattic/jetpack
*/
namespace Automattic\Jetpack;
if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}
/**
* 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' );