PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 81 releases
← All changes | includes/ajax/email-template.php +4 -4 2.10.0 → 2.14.0 View file →
@@ -14,9 +14,9 @@
14 14 public function __construct() {
15 15 $this->actions = [
16 16 'get_templates' => [
17 17 'callback' => [ $this, 'get_templates' ],
18 - 'capability' => 'manage_options',
18 + 'capability' => 'ablocks_manage_forms',
19 19 'fields' => [
20 20 'email_template_id' => 'string',
21 21 'isSubscription' => 'boolean',
22 22 ]
@@ -22,9 +22,9 @@
22 22 ]
23 23 ],
24 24 'update_template' => [
25 25 'callback' => [ $this, 'update_template' ],
26 - 'capability' => 'manage_options',
26 + 'capability' => 'ablocks_manage_forms',
27 27 'fields' => [
28 28 'from' => 'string',
29 29 'email_template_id' => 'string',
30 30 'slug' => 'string',
@@ -40,9 +40,9 @@
40 40 ]
41 41 ],
42 42 'delete_template' => [
43 43 'callback' => [ $this, 'delete_template' ],
44 - 'capability' => 'manage_options',
44 + 'capability' => 'ablocks_manage_forms',
45 45 'fields' => [
46 46 'email_template_id' => 'string',
47 47 'slug' => 'string',
48 48 ]
@@ -48,9 +48,9 @@
48 48 ]
49 49 ],
50 50 'remove_templates' => [
51 51 'callback' => [ $this, 'remove_templates' ],
52 - 'capability' => 'manage_options',
52 + 'capability' => 'ablocks_manage_forms',
53 53 'fields' => [
54 54 'email_template_id' => 'string',
55 55 ]
56 56 ],