We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdd700a commit d602af7Copy full SHA for d602af7
‎src/Task.php‎
@@ -123,6 +123,26 @@ public function push_to_queue( $data ) {
123
return $this;
124
}
125
126
+ /**
127
+ * Set the data for queue.
128
+ *
129
+ * Use this only if you have the data in correct format.
130
+ * CAUTION: You should call Task::save() right after this
131
+ * because this will replace the data in current queue.
132
133
+ * @param mixed $data Data to process.
134
135
+ * @since 1.0.2
136
+ * @access public
137
138
+ * @return Task $this
139
+ */
140
+ public function set_queue( $data ) {
141
+ $this->data = $data;
142
+
143
+ return $this;
144
+ }
145
146
/**
147
* Save the process queue.
148
*
0 commit comments