WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

Note::set_content_data() public WC 1.0

Set note data for potential re-localization.

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

No Hooks.

Return

null. Nothing.

Usage

$Note = new Note();
$Note->set_content_data( $content_data );
$content_data(object) (required)
Note data.

Code of Note::set_content_data() WC 5.3.0

<?php
public function set_content_data( $content_data ) {
	$allowed_type = false;

	// Make sure $content_data is stdClass Object or an array.
	if ( ! ( $content_data instanceof \stdClass ) ) {
		$this->error( 'admin_note_invalid_data', __( 'The admin note content_data prop must be an instance of stdClass.', 'woocommerce' ) );
	}

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