| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/business/mpa/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
/**
* File: UserExperience_OEmbed_Extension.php
*
* @package W3TC
*/
namespace W3TC;
defined( 'ABSPATH' ) || exit;
/**
* Class UserExperience_OEmbed_Extension
*/
class UserExperience_OEmbed_Extension {
/**
* Runs the initialization process for the extension.
*
* Adds the necessary WordPress hooks to modify the oEmbed behavior.
*
* @return void
*/
public function run() {
add_action( 'wp_footer', array( $this, 'wp_footer' ) );
}
/**
* Modifies the footer of the WordPress page.
*
* Deregisters the 'wp-embed' script to prevent WordPress from enqueueing
* its default embed script, reducing unnecessary resources being loaded.
*
* @return void
*/
public function wp_footer() {
wp_deregister_script( 'wp-embed' );
}
}
$w3tc_o = new UserExperience_OEmbed_Extension();
$w3tc_o->run();