Files
laps/laps.php
T
sandros a30722c751
Tests / tests (push) Successful in 5s
Release / upload-asset (push) Successful in 4s
Add Hungarian language support and update author and repository metadata
2026-09-27 23:08:51 +02:00

37 lines
939 B
PHP

<?php
/*
Plugin Name: Laps
Plugin URI: https://git.sandros.hu/sandros/laps
Description: Light WordPress profiler.
Author: sandros & Rarst
Author URI: https://git.sandros.hu/sandros/laps
Version: 3.4.1
Requires at least: 6.2
Requires PHP: 7.4
Update URI: false
Text Domain: laps
Domain Path: /languages
License: MIT
*/
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require __DIR__ . '/vendor/autoload.php';
}
if ( ! class_exists( '\Rarst\Laps\Plugin' ) ) {
trigger_error( 'Laps not fully installed! Please install with Composer or download full release archive.', E_USER_ERROR );
}
if ( PHP_VERSION_ID < 70400 ) {
trigger_error( 'Laps requires PHP version >=7.4.', E_USER_ERROR );
}
add_action( 'plugins_loaded', function (): void {
load_plugin_textdomain( 'laps', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
} );
$laps = new \Rarst\Laps\Plugin();
$laps->run();