register_hooks(); $class_public = new Front(); $class_public->register_hooks(); $class_gutenberg = new Gutenberg(); $class_gutenberg->register_hooks(); $class_settings = new Settings(); $class_settings->register_hooks(); // Blocks $class_blocks_plugin = new Plugin(); $class_blocks_plugin->run(); $class_blocks_notice = new Notice(); $class_blocks_notice->run(); $class_blocks_ad = new Ad(); $class_blocks_ad->run(); $class_blocks_adtext = new AdText(); $class_blocks_adtext->run(); $class_blocks_product = new Product(); $class_blocks_product->run(); $class_blocks_card = new Card(); $class_blocks_card->run(); $class_blocks_addtocart = new AddToCart(); $class_blocks_addtocart->run(); $class_blocks_post = new Post(); $class_blocks_post->run(); $class_blocks_testimonial = new Testimonial(); $class_blocks_testimonial->run(); $class_blocks_gmap = new Gmap(); $class_blocks_gmap->run(); } public function get_plugin_name() { return Consts::PLUGIN_NAME; } public function get_version() { return Consts::VERSION; } public function check_compatibility() { global $wp_version; if ( ! version_compare( $wp_version, '5.1', '>=' ) and ! is_plugin_active( 'gutenberg/gutenberg.php' ) ) { deactivate_plugins( '/gutenberg-blocks/plugin.php' ); add_action( 'admin_notices', array( $this , 'compatibility_notice') ); } } public function compatibility_notice() { ?>