feat: scaffold plugin foundation

This commit is contained in:
Keith Solomon
2026-04-26 12:44:16 -05:00
commit 557657344d
24 changed files with 5238 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
/**
* Plugin activation lifecycle hook.
*
* @package WPContentSync
*/
namespace WPContentSync;
use WPContentSync\Settings\Settings;
use WPContentSync\Settings\SettingsRepository;
final class Activator {
public static function activate(): void {
if ( false === get_option( SettingsRepository::OPTION_NAME, false ) ) {
update_option( SettingsRepository::OPTION_NAME, Settings::fromArray( array() )->toArray(), false );
}
}
}