WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

Note::set_content() public WC 1.0

Set note content.

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

No Hooks.

Return

null. Nothing.

Usage

$Note = new Note();
$Note->set_content( $content );
$content(string) (required)
Note content.

Code of Note::set_content() WC 5.3.0

<?php
public function set_content( $content ) {
	$allowed_html = array(
		'br'     => array(),
		'em'     => array(),
		'strong' => array(),
		'a'      => array(
			'href'     => true,
			'rel'      => true,
			'name'     => true,
			'target'   => true,
			'download' => array(
				'valueless' => 'y',
			),
		),
		'p'      => array(),
	);

	$content = wp_kses( $content, $allowed_html );

	if ( empty( $content ) ) {
		$this->error( 'admin_note_invalid_data', __( 'The admin note content prop cannot be empty.', 'woocommerce' ) );
	}

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