Skip to content

Commit ffcbccd

Browse files
committed
more getters
1 parent c8af2b6 commit ffcbccd

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

classes/suggested-tasks/providers/interactive/class-email-sending.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ class Email_Sending extends Interactive {
4242
*/
4343
protected $is_dismissable = true;
4444

45+
/**
46+
* The task priority.
47+
*
48+
* @var string
49+
*/
50+
protected $priority = 'high';
51+
4552
/**
4653
* The popover ID.
4754
*
@@ -377,11 +384,11 @@ public function get_task_details( $task_id = '' ) {
377384
return [
378385
'task_id' => $task_id,
379386
'title' => $this->get_title(),
380-
'parent' => 0,
381-
'priority' => 'high',
387+
'parent' => $this->get_parent(),
388+
'priority' => $this->get_priority(),
382389
'category' => $this->get_provider_category(),
383390
'provider_id' => $this->get_provider_id(),
384-
'points' => 1,
391+
'points' => $this->get_points(),
385392
'dismissable' => $this->is_dismissable(),
386393
'popover_id' => 'prpl-popover-' . $this->popover_id,
387394
'description' => $this->get_description(),

0 commit comments

Comments
 (0)