- 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
40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php declare( strict_types=1 );
|
|
|
|
namespace KadenceWP\KadenceBlocks\Health;
|
|
|
|
use KadenceWP\KadenceBlocks\StellarWP\ProphecyMonorepo\Container\Contracts\Provider;
|
|
use KadenceWP\KadenceBlocks\StellarWP\Uplink\Notice\Notice;
|
|
|
|
/**
|
|
* Check the Health aka the status of requirements, dependencies or anything that
|
|
* could affect the running of the plugin.
|
|
*/
|
|
final class Health_Provider extends Provider {
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function register(): void {
|
|
/*
|
|
* An array indexed by PHP function names to check are enabled and the Notice
|
|
* type to render if they aren't.
|
|
*
|
|
* Adjust as needed.
|
|
*/
|
|
$this->container->when( Required_Function_Verifier::class )
|
|
->needs( '$function_map' )
|
|
->give( static function (): array {
|
|
return [
|
|
'error_log' => Notice::ERROR,
|
|
'curl_multi_exec' => Notice::WARNING,
|
|
];
|
|
} );
|
|
|
|
add_action(
|
|
'admin_notices',
|
|
$this->container->callback( Required_Function_Verifier::class, 'verify_functions' )
|
|
);
|
|
}
|
|
|
|
}
|