AJAX.php
3 years ago
Cleared_Cache_AJAX.php
3 years ago
Create_Campaign_AJAX.php
3 years ago
Delete_Campaign_AJAX.php
3 years ago
Delete_Data_AJAX.php
3 years ago
Export_Campaigns_AJAX.php
3 years ago
Export_Devices_AJAX.php
2 years ago
Export_Geo_AJAX.php
3 years ago
Export_Pages_AJAX.php
3 years ago
Export_Referrers_AJAX.php
3 years ago
Filters_AJAX.php
2 years ago
Migration_Status_AJAX.php
3 years ago
Real_Time_AJAX.php
3 years ago
Test_Email_AJAX.php
3 years ago
Update_Capabilities_AJAX.php
3 years ago
Migration_Status_AJAX.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP_SCOPED\IAWP\AJAX; |
| 4 | |
| 5 | use IAWP_SCOPED\IAWP\Migrations; |
| 6 | class Migration_Status_AJAX extends AJAX |
| 7 | { |
| 8 | protected function action_name() : string |
| 9 | { |
| 10 | return 'iawp_migration_status'; |
| 11 | } |
| 12 | protected function allowed_during_migrations() : bool |
| 13 | { |
| 14 | return \true; |
| 15 | } |
| 16 | protected function action_callback() : void |
| 17 | { |
| 18 | if (!Migrations\Migration::is_actually_migrating()) { |
| 19 | Migrations\Migration::create_or_migrate(); |
| 20 | } |
| 21 | \wp_send_json_success(['isMigrating' => Migrations\Migration::is_migrating()]); |
| 22 | } |
| 23 | } |
| 24 |