matcher = new WCASV_Match_Conditions(); /** * Post Type class */ require_once plugin_dir_path( __FILE__ ) . 'includes/class-wcasv-post-type.php'; $this->post_type = new WCASV_Post_Type(); // AJAX if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) : require_once plugin_dir_path( __FILE__ ) . '/includes/class-wcasv-ajax.php'; $this->ajax = new WCASV_Ajax(); endif; // Admin if ( is_admin() && ! defined( 'DOING_AJAX' ) ) : require_once plugin_dir_path( __FILE__ ) . '/includes/admin/class-wcasv-admin.php'; $this->admin = new WCASV_Admin(); endif; // Include functions require_once plugin_dir_path( __FILE__ ) . 'includes/wcasv-validation-functions.php'; // Load textdomain $this->load_textdomain(); } /** * Textdomain. * * Load the textdomain based on WP language. * * @since 1.0.0 */ public function load_textdomain() { load_plugin_textdomain( 'woocommerce-advanced-shipping-validation', false, basename( dirname( __FILE__ ) ) . '/languages' ); } /** * Display PHP 5.3 required notice. * * Display a notice when the required PHP version is not met. * * @since 1.0.6 */ public function php_version_notice() { ?>