server/content/plugins/f-translate/wporg-gp-routes/wporg-gp-routes.php
Ryan McCue 3e7bc6e67b Initial export of the repository
Signed-off-by: Ryan McCue <me@ryanmccue.info>
2025-06-05 11:48:47 +02:00

26 lines
817 B
PHP

<?php
/**
* Plugin name: GlotPress: Custom Routes
* Description: Provides custom routes like <code>/locale</code> or <code>/stats</code> for translate.wordpress.org.
* Version: 2.0
* Author: WordPress.org
* Author URI: http://wordpress.org/
* License: GPLv2 or later
*/
namespace WordPressdotorg\GlotPress\Routes;
use WordPressdotorg\Autoload;
// Store the root plugin file for usage with functions which use the plugin basename.
define( __NAMESPACE__ . '\PLUGIN_FILE', __FILE__ );
if ( ! class_exists( '\WordPressdotorg\Autoload\Autoloader', false ) ) {
include __DIR__ . '/vendor/wordpressdotorg/autoload/class-autoloader.php';
}
// Register an Autoloader for all files.
Autoload\register_class_path( __NAMESPACE__, __DIR__ . '/inc' );
// Instantiate the Plugin.
Plugin::get_instance();