WC_Notes_Run_Db_Update::set_notice_actioned()public staticWC 1.0

Set this notice to an actioned one, so that it's no longer displayed.

Method of the class: WC_Notes_Run_Db_Update{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Notes_Run_Db_Update::set_notice_actioned();

WC_Notes_Run_Db_Update::set_notice_actioned() code WC 8.6.1

public static function set_notice_actioned() {
	$note_id = self::get_current_notice();

	if ( ! $note_id ) {
		return;
	}

	$note = new Note( $note_id );
	$note->set_status( Note::E_WC_ADMIN_NOTE_ACTIONED );
	$note->save();
}