Note
Note class.
Description Description
Source Source
File: packages/woocommerce-admin/src/Notes/Note.php
Methods Methods
- __construct — Note constructor. Loads note data.
- add_action — Add an action to the note
- add_nonce_to_action — Add a nonce to an existing note action.
- apply_changes — Merge changes with data and clear.
- clear_actions — Clear actions from a note.
- get_actions — Get actions on the note (if any).
- get_allowed_statuses — Get allowed statuses.
- get_allowed_types — Get allowed types.
- get_content — Get note content.
- get_content_data — Get note content data (i.e. values that would be needed for re-localization)
- get_data — Returns all data for this object.
- get_date_created — Get date note was created.
- get_date_reminder — Get date on which user should be reminded of the note (if any).
- get_image — Get note image (if any).
- get_is_deleted — Get deleted status.
- get_is_snoozable — Get note snoozability.
- get_layout — Get note layout (the old notes won't have one).
- get_locale — Get note locale.
- get_name — Get note name.
- get_source — Get note source.
- get_status — Get note status.
- get_title — Get note title.
- get_type — Get note type.
- set_actions — Set actions on a note.
- set_content — Set note content.
- set_content_data — Set note data for potential re-localization.
- set_date_created — Set date note was created. NULL is not allowed
- set_date_reminder — Set date admin should be reminded of note. NULL IS allowed
- set_icon — Set note icon (Deprecated).
- set_image — Set note image.
- set_is_deleted — Set note deleted status. NULL is not allowed
- set_is_snoozable — Set note snoozability.
- set_layout — Set note layout.
- set_locale — Set note locale.
- set_name — Set note name.
- set_source — Set note source.
- set_status — Set note status.
- set_title — Set note title.
- set_type — Set note type.