This commit is contained in:
Javier Casares 2026-06-03 06:24:03 +00:00
commit 6708bbb67f
43 changed files with 8342 additions and 0 deletions

View file

@ -0,0 +1,25 @@
<?php
/**
* Fired during plugin activation.
*
* @package MediaRightsAudit\Core
*/
namespace MediaRightsAudit\Core;
/**
* Handles tasks that run once when the plugin is activated.
*/
class Activator {
/**
* Creates database tables and seeds the initial DB version.
*
* @return void
*/
public static function activate(): void {
Database::create_tables();
update_option( 'robotstxt_mediaaudit_db_version', ROBOTSTXT_MEDIAAUDIT_DB_VERSION );
flush_rewrite_rules();
}
}