Files
hub-insurance/wp-content/plugins/visual-regression-tests/visual-regression-tests.php
T
2026-07-02 15:54:39 -06:00

57 lines
1.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Plugin Name: VRTs Visual Regression Tests
* Plugin URI: https://vrts.app/
* Description: Find issues before others do every time. With automatic screenshots, daily comparisons, and instant tests after WordPress and plugin updates.
* Version: 2.0.8
* Requires at least: 5.0
* Requires PHP: 7.0
* Author: Bleech
* Author URI: https://bleech.de
* Text Domain: visual-regression-tests
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
use Vrts\Core\Plugin;
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'VRTS_PLUGIN_FILE' ) ) {
define( 'VRTS_PLUGIN_FILE', __FILE__ );
}
if ( ! defined( 'VRTS_SERVICE_ENDPOINT' ) ) {
define( 'VRTS_SERVICE_ENDPOINT', getenv( 'VRTS_SERVICE_ENDPOINT' ) ?: 'https://bleech-vrts-app.blee.ch/api/v1/' );
}
// Autoloader via Composer if exists.
if ( file_exists( plugin_dir_path( VRTS_PLUGIN_FILE ) . 'vendor/autoload.php' ) ) {
require plugin_dir_path( VRTS_PLUGIN_FILE ) . 'vendor/autoload.php';
}
// Custom autoloader.
require plugin_dir_path( VRTS_PLUGIN_FILE ) . 'includes/autoload.php';
if ( ! function_exists( 'vrts' ) ) {
/**
* Main function responsible for accessing plugin functionalities.
*
* @return Plugin Class instance.
*/
function vrts() {
return Plugin::get_instance();
}
}
/**
* Plugin Setup.
*
* Load and init theme features.
*/
vrts()->setup( 'vrts', [
'Vrts\\Features\\' => 'includes/features',
'Vrts\\Tables\\' => 'includes/tables',
'Vrts\\Rest_Api\\' => 'includes/rest-api',
]);