_version = $version; $this->_token = 'canto'; // Load plugin environment variables $this->file = $file; $this->dir = dirname($this->file); $this->assets_dir = trailingslashit($this->dir) . 'assets'; $this->assets_url = esc_url(trailingslashit(plugins_url('/assets/', $this->file))); $this->script_suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; $this->fbc_app_token = get_option('fbc_app_token'); $this->fbc_flight_domain = get_option('fbc_flight_domain'); $this->fbc_refresh_token = get_option('fbc_refresh_token'); $this->fbc_flight_username = get_option('fbc_flight_username'); register_activation_hook($this->file, array($this, 'install')); // Load frontend JS & CSS //add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ), 10 ); //add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 10 ); // Load admin JS & CSS add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'), 10, 1); add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_styles'), 10, 1); /* * ToDo: separate outside of Constructor */ function md_modify_jsx_tag($tag, $handle, $src) { // Check that this is output of JSX file if (strstr($handle, 'react') != false) { //$tag = str_replace( "