src/Activators/Install.php
/**
     * Run the installation process
     * Install API Connection table
     * Install Settings table
     * Start sync crons
     */
Run the installation process
Install API Connection table
Install Settings table
Start sync crons
Run the installation process Install API Connection table Install Settings table Start sync crons
public static function run()
    {
        if (!function_exists('curl_version')) {
            deactivate_plugins(plugin_basename(__FILE__));
            wp_die(esc_html__('cURL library is required for using Moloni Plugin.', 'moloni-pt'));
        }
        if (!class_exists('WooCommerce')) {
            deactivate_plugins(plugin_basename(__FILE__));
            wp_die(esc_html__('Requires WooCommerce 3.0.0 or above.', 'moloni-pt'));
        }
        self::createTables();
        self::insertSettings();
    }
public static function run ( ) { if ( ! function_exists ( 'curl_version' ) ) { deactivate_plugins ( plugin_basename ( __FILE__ ) ) ; wp_die ( esc_html__ ( 'cURL library is required for using Moloni Plugin.' , 'moloni-pt' ) ) ; } if ( ! class_exists ( 'WooCommerce' ) ) { deactivate_plugins ( plugin_basename ( __FILE__ ) ) ; wp_die ( esc_html__ ( 'Requires WooCommerce 3.0.0 or above.' , 'moloni-pt' ) ) ; } self :: createTables ( ) ; self :: insertSettings ( ) ; }
Run the installation process
 Install API Connection table
 Install Settings table
 Start sync crons
Run the installation process Install API Connection table Install Settings table Start sync crons