25 lines
491 B
PHP
25 lines
491 B
PHP
<?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();
|
|
}
|
|
}
|