File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * WooCommerce Admin: Add First Product.
4
- *
5
- * Adds a note (type `email`) to bring the client back to the store setup flow.
3
+ * Adds an error note to display Pinterest API account status failure responses.
6
4
*
5
+ * @since x.x.x
7
6
* @package Automattic\WooCommerce\Pinterest\Notes
8
7
*/
9
8
17
16
use Automattic \WooCommerce \Admin \Notes \NoteTraits ;
18
17
19
18
/**
20
- * Add_First_Product.
19
+ * Account Failure admin notice.
20
+ *
21
+ * @since x.x.x
21
22
*/
22
23
class AccountFailure {
23
24
/**
@@ -33,6 +34,7 @@ class AccountFailure {
33
34
/**
34
35
* Get the note.
35
36
*
37
+ * @since x.x.x
36
38
* @param string $message Pinterest API error message.
37
39
* @return Note
38
40
*/
@@ -54,6 +56,7 @@ public static function get_note( string $message ) {
54
56
/**
55
57
* Used to add an account failure note if the one does not exist.
56
58
*
59
+ * @since x.x.x
57
60
* @param string $message Pinterest API error message.
58
61
* @return void
59
62
* @throws NotesUnavailableException An exception when notes are unavailable.
@@ -70,6 +73,7 @@ public static function maybe_add_note( string $message ): void {
70
73
/**
71
74
* Delete the note.
72
75
*
76
+ * @since x.x.x
73
77
* @return void
74
78
*/
75
79
public static function delete_note () {
You can’t perform that action at this time.
0 commit comments