File "PluginCompatibility.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/flexible-shipping-pro/vendor/wpdesk/wp-wpdesk-fs-compatibility/src/PluginCompatibility.php
File size: 845 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Class Plugin Compatibility
*
* @package WPDesk\FS\Compatibility
*/
namespace WPDesk\FS\Compatibility;
use WPDesk\PluginBuilder\Plugin\Hookable;
/**
* Class Plugin Compatibility
*/
class PluginCompatibility implements Hookable {
/**
* PluginCompatibility constructor.
*/
public function hooks() {
add_action( 'plugins_loaded', array( $this, 'init_plugin_checker' ) );
}
/**
* Init plugin checker.
*/
public function init_plugin_checker() {
if ( ! is_admin() ) {
return;
}
$plugin_compatibility_checker = new PluginCompatibilityChecker();
if ( ! $plugin_compatibility_checker->are_plugins_compatible() ) {
$notice = new Notice( $plugin_compatibility_checker );
$notice->hooks();
$block_settings = new BlockSettings( $plugin_compatibility_checker );
$block_settings->hooks();
}
}
}