Note::add_action( string $name, string $label, string $url = '', string $status = self::E_WC_ADMIN_NOTE_ACTIONED, boolean $primary = false, string $actioned_text = '' )

Add an action to the note


Description Description


Parameters Parameters

$name

(Required) Action name (not presented to user).

$label

(Required) Action label (presented as button label).

$url

(Optional) Action URL, if navigation needed. Optional.

Default value: ''

$status

(Optional) Status to transition parent Note to upon click. Defaults to 'actioned'.

Default value: self::E_WC_ADMIN_NOTE_ACTIONED

$primary

(Optional) Whether or not this is the primary action. Defaults to false.

Default value: false

$actioned_text

(Optional) The label to display after the note has been actioned but before it is dismissed in the UI.

Default value: ''


Top ↑

Source Source

File: packages/woocommerce-admin/src/Notes/Note.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.