Files
Malin f3ff7b7186 feat: initial ACRIB WordPress deployment
- WordPress 6.9.4 (es_ES) with Kadence theme
- Homepage: Hero, La Asociación, Pilares, Beneficios, Eventos, Miembros, Hazte Miembro, Contacto
- Brand identity: #13294b navy, #a12932 burgundy, #c69c48 gold
- Fonts: Raleway (headings) + Source Sans 3 (body) + Lato (UI)
- Plugins: Kadence Blocks, Polylang, Contact Form 7
- Custom CSS with full brand styling and responsive layout
- HTTPS enforced via wp-config.php proxy detection
2026-05-19 19:25:59 +02:00

46 lines
1.2 KiB
PHP

<?php declare( strict_types=1 );
namespace KadenceWP\KadenceBlocks\Optimizer\Hash;
use KadenceWP\KadenceBlocks\StellarWP\ProphecyMonorepo\Container\Contracts\Provider as Provider_Contract;
final class Provider extends Provider_Contract {
public function register(): void {
$this->register_hash_store();
$this->register_hash_handling();
}
private function register_hash_store(): void {
$this->container->singleton( Hash_Store::class, Hash_Store::class );
}
private function register_hash_handling(): void {
$this->container->singleton( Hash_Builder::class, Hash_Builder::class );
$this->container->singleton( Hash_Handler::class, Hash_Handler::class );
// Don't hook in the optimizer under these scenarios for optimal performance.
if (
! defined( 'WP_UNINSTALL_PLUGIN' ) &&
! wp_installing() &&
! wp_doing_ajax() &&
! wp_is_json_request() &&
! wp_doing_cron()
) {
add_action(
'template_redirect',
$this->container->callback( Hash_Handler::class, 'start_buffering' ),
1,
0
);
add_action(
'shutdown',
$this->container->callback( Hash_Handler::class, 'check_hash' ),
PHP_INT_MAX - 1,
0
);
}
}
}