Files
roi-theme/wp-content/plugins/w3-total-cache/UserExperience_OEmbed_Extension.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

40 lines
795 B
PHP
Executable File

<?php
/**
* File: UserExperience_OEmbed_Extension.php
*
* @package W3TC
*/
namespace W3TC;
/**
* 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' );
}
}
$o = new UserExperience_OEmbed_Extension();
$o->run();