WC_Notes_Refund_Returns
in package
WC_Notes_Refund_Returns.
Table of Contents
- NOTE_NAME = 'wc-refund-returns-page'
- Name of the note for use in the database.
- get_note() : object
- Get the note.
- get_note_from_db() : Note
- Get the note.
- init() : mixed
- Attach hooks.
- possibly_add_note() : mixed
- Maybe add a note to the inbox.
Constants
NOTE_NAME
Name of the note for use in the database.
public
mixed
NOTE_NAME
= 'wc-refund-returns-page'
Methods
get_note()
Get the note.
public
static get_note(int $page_id) : object
Parameters
- $page_id : int
-
The ID of the page.
Return values
object — $note The note object.get_note_from_db()
Get the note.
public
static get_note_from_db(Note $note_from_db) : Note
Parameters
- $note_from_db : Note
-
The note object from the database.
Return values
Note — $note The note object.init()
Attach hooks.
public
static init() : mixed
Return values
mixed —possibly_add_note()
Maybe add a note to the inbox.
public
static possibly_add_note(int $page_id) : mixed
Parameters
- $page_id : int
-
The ID of the page.