WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

Note::set_source() public WC 1.0

Set note source.

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

No Hooks.

Return

null. Nothing.

Usage

$Note = new Note();
$Note->set_source( $source );
$source(string) (required)
Note source.

Code of Note::set_source() WC 5.3.0

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

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