51 lines
1.5 KiB
PHP
51 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: Media Audit (by ROBOTSTXT)
|
|
* Plugin URI: https://git.robotstxt.es/ROBOTSTXT/robotstxt-mediaaudit
|
|
* Description: Internal media library usage auditing and external reverse image search to detect potential copyright issues.
|
|
* Version: 1.2.0
|
|
* Requires at least: 6.8
|
|
* Tested up to: 7.0
|
|
* Requires PHP: 8.2
|
|
* Requires Plugins: action-scheduler
|
|
* Author: ROBOTSTXT
|
|
* Author URI: https://www.robotstxt.es/
|
|
* Contributors: javiercasares, robotstxt
|
|
* License: GPL-3.0-or-later
|
|
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
|
* Text Domain: robotstxt-mediaaudit
|
|
* Domain Path: /languages
|
|
*
|
|
* @package MediaRightsAudit
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
define( 'ROBOTSTXT_MEDIAAUDIT_VERSION', '1.2.0' );
|
|
define( 'ROBOTSTXT_MEDIAAUDIT_DB_VERSION', '1.0.1' );
|
|
define( 'ROBOTSTXT_MEDIAAUDIT_PLUGIN_FILE', __FILE__ );
|
|
define( 'ROBOTSTXT_MEDIAAUDIT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
|
define( 'ROBOTSTXT_MEDIAAUDIT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
|
|
|
require_once ROBOTSTXT_MEDIAAUDIT_PLUGIN_DIR . 'vendor/autoload.php';
|
|
|
|
use MediaRightsAudit\Core\Activator;
|
|
use MediaRightsAudit\Core\Deactivator;
|
|
use MediaRightsAudit\Core\Plugin;
|
|
|
|
register_activation_hook( __FILE__, array( Activator::class, 'activate' ) );
|
|
register_deactivation_hook( __FILE__, array( Deactivator::class, 'deactivate' ) );
|
|
|
|
/**
|
|
* Bootstraps the plugin.
|
|
*
|
|
* @return void
|
|
*/
|
|
function robotstxt_mediaaudit_run(): void {
|
|
$plugin = new Plugin();
|
|
$plugin->run();
|
|
}
|
|
|
|
add_action( 'plugins_loaded', 'robotstxt_mediaaudit_run' );
|