v1.0.0
This commit is contained in:
commit
6708bbb67f
43 changed files with 8342 additions and 0 deletions
25
includes/Core/Activator.php
Normal file
25
includes/Core/Activator.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue