Server IP : 185.61.155.44 / Your IP : 18.119.161.39 Web Server : LiteSpeed System : Linux premium145.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : antommvy ( 964) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/antommvy/anton.lat/wp-content/plugins/wp-smushit/core/integrations/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php namespace Smush\Core\Integrations; use Smush\Core\Controller; class AMP_Integration extends Controller { public function __construct() { $this->register_action( 'wp_smush_should_skip_lazy_load', array( $this, 'skip_for_amp_pages' ) ); } public function skip_for_amp_pages( $skip ) { return $this->is_amp_endpoint() ? true : $skip; } public function is_amp_endpoint() { return function_exists( 'is_amp_endpoint' ) && is_amp_endpoint(); } }