WC_Notes_Run_Db_Update::set_notice_actioned
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.
Returns
null. Nothing (null).
Usage
$result = WC_Notes_Run_Db_Update::set_notice_actioned();
WC_Notes_Run_Db_Update::set_notice_actioned() WC Notes Run Db Update::set notice actioned code WC 10.6.2
public static function set_notice_actioned() {
$note = self::get_current_notice();
if ( ! $note ) {
return;
}
if ( Note::E_WC_ADMIN_NOTE_ACTIONED !== $note->get_status() ) {
$note->set_status( Note::E_WC_ADMIN_NOTE_ACTIONED );
$note->save();
}
}