WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

Automattic\WooCommerce\Admin\Notes

Notes::trigger_note_action() public WC 1.0

Trigger note action.

{} Это метод класса: Notes{}

Возвращает

Note/true/false.

Использование

$result = Notes::trigger_note_action( $note, $triggered_action );
$note(Note) (обязательный)
The note that has the triggered action.
$triggered_action(объект) (обязательный)
The triggered action.

Код Notes::trigger_note_action() WC 5.0.0

<?php
public static function trigger_note_action( $note, $triggered_action ) {
	/**
	 * Fires when an admin note action is taken.
	 *
	 * @param string $name The triggered action name.
	 * @param Note   $note The corresponding Note.
	 */
	do_action( 'woocommerce_note_action', $triggered_action->name, $note );

	/**
	 * Fires when an admin note action is taken.
	 * For more specific targeting of note actions.
	 *
	 * @param Note $note The corresponding Note.
	 */
	do_action( 'woocommerce_note_action_' . $triggered_action->name, $note );

	// Update the note with the status for this action.
	if ( ! empty( $triggered_action->status ) ) {
		$note->set_status( $triggered_action->status );
	}

	$note->save();

	if ( in_array( $note->get_type(), array( 'error', 'update' ), true ) ) {
		$tracks_event = 'wcadmin_store_alert_action';
	} else {
		$tracks_event = 'wcadmin_inbox_action_click';
	}

	wc_admin_record_tracks_event(
		$tracks_event,
		array(
			'note_name'    => $note->get_name(),
			'note_type'    => $note->get_type(),
			'note_title'   => $note->get_title(),
			'note_content' => $note->get_content(),
			'action_name'  => $triggered_action->name,
			'action_label' => $triggered_action->label,
			'screen'       => self::get_screen_name(),
		)
	);
	return $note;
}