| 1 |
<?php |
| 2 |
/** |
| 3 |
* Fired during plugin activation. |
| 4 |
* |
| 5 |
* @link https://yukyhendiawan.com |
| 6 |
* @since 2.1.0 |
| 7 |
* |
| 8 |
* @package Import_Export_Menu |
| 9 |
*/ |
| 10 |
|
| 11 |
declare(strict_types=1); |
| 12 |
|
| 13 |
namespace ImportExportMenu; |
| 14 |
|
| 15 |
defined( 'ABSPATH' ) || exit; |
| 16 |
|
| 17 |
/** |
| 18 |
* Plugin activation entry point. |
| 19 |
* |
| 20 |
* Fires the `import_export_menu_activate` action so downstream forks can hook setup |
| 21 |
* code (table creation, default options, capability assignment, etc.). |
| 22 |
* |
| 23 |
* @since 2.1.0 |
| 24 |
*/ |
| 25 |
final class Activator { |
| 26 |
|
| 27 |
/** |
| 28 |
* Run on plugin activation. |
| 29 |
*/ |
| 30 |
public static function activate(): void { |
| 31 |
do_action( 'import_export_menu_activate' ); |
| 32 |
} |
| 33 |
} |
| 34 |
|