WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

Note::set_status() public WC 1.0

Set note status.

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

No Hooks.

Return

null. Nothing.

Usage

$Note = new Note();
$Note->set_status( $status );
$status(string) (required)
Note status.

Code of Note::set_status() WC 5.2.2

<?php
public function set_status( $status ) {
	if ( empty( $status ) ) {
		$this->error( 'admin_note_invalid_data', __( 'The admin note status prop cannot be empty.', 'woocommerce' ) );
	}

	if ( ! in_array( $status, self::get_allowed_statuses(), true ) ) {
		$this->error(
			'admin_note_invalid_data',
			sprintf(
				/* translators: %s: admin note status property. */
				__( 'The admin note status prop (%s) is not one of the supported statuses.', 'woocommerce' ),
				$status
			)
		);
	}

	$this->set_prop( 'status', $status );
}