PluginProbe
Metricool – Social media and site statistics / trunk
Metricool – Social media and site statistics vtrunk
2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
metricool / app / Features / TaskManagement / Tasks / SchedulePostTask.php

SchedulePostTask.php in Metricool – Social media and site statistics trunk, at app/Features/TaskManagement/Tasks/SchedulePostTask.php

30 lines 557 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }
30