v1.0.0
This commit is contained in:
commit
6708bbb67f
43 changed files with 8342 additions and 0 deletions
50
robotstxt-mediaaudit.php
Normal file
50
robotstxt-mediaaudit.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
/**
|
||||
* Plugin Name: Media Audit (by ROBOTSTXT)
|
||||
* Plugin URI: https://robotstxt.es/plugins/media-audit/
|
||||
* Description: Internal media library usage auditing and external reverse image search to detect potential copyright issues.
|
||||
* Version: 1.0.0
|
||||
* Requires at least: 6.8
|
||||
* Tested up to: 7.0
|
||||
* Requires PHP: 8.2
|
||||
* Requires Plugins: action-scheduler
|
||||
* Author: Javier Casares
|
||||
* Author URI: https://javiercasares.com
|
||||
* 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.0.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' );
|
||||
Loading…
Reference in a new issue