WordPress at Your Fingertips
function is not described

WC_Notes_Run_Db_Update::set_notice_actioned() public WC 1.0

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

{} It's a method of the class: WC_Notes_Run_Db_Update{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Notes_Run_Db_Update::set_notice_actioned();

Code of WC_Notes_Run_Db_Update::set_notice_actioned() WC 5.9.0

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();
}