← All changes
|
app/Features/TaskManagement/Tasks/SchedulePostTask.php
+29
-0
2.0.0
→
2.1.1
View file →
| @@ -1,0 +1,29 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +declare(strict_types=1); | |
| 4 | + | |
| 5 | +namespace Metricool\Features\TaskManagement\Tasks; | |
| 6 | + | |
| 7 | +class SchedulePostTask extends AbstractTask | |
| 8 | +{ | |
| 9 | + public const IDENTIFIER = 'schedule_post'; | |
| 10 | + | |
| 11 | + /** | |
| 12 | + * @inheritDoc | |
| 13 | + */ | |
| 14 | + public function getText(): string | |
| 15 | + { | |
| 16 | + return __('Schedule a post to promote your site!', 'metricool'); | |
| 17 | + } | |
| 18 | + | |
| 19 | + /** | |
| 20 | + * @inheritDoc | |
| 21 | + */ | |
| 22 | + public function getAction(): array | |
| 23 | + { | |
| 24 | + return [ | |
| 25 | + 'text' => __('Schedule a post', 'metricool'), | |
| 26 | + 'link' => admin_url('edit.php'), | |
| 27 | + ]; | |
| 28 | + } | |
| 29 | +} | |