WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Notes

FilterByProductVariationsInReports::get_note() public WC 1.0

Get the note

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

No Hooks.

Return

Note|null. Nothing.

Usage

$result = FilterByProductVariationsInReports::get_note();

Code of FilterByProductVariationsInReports::get_note() WC 5.3.0

<?php
public static function get_note() {
	if ( ! self::are_products_with_variations() ) {
		return null;
	}

	$note = new Note();
	$note->set_title( __( 'New - filter by product variations in orders and products reports', 'woocommerce' ) );
	$note->set_content( __( 'One of the most awaited features has just arrived! You can now have insights into each product variation in the orders and products reports.', 'woocommerce' ) );
	$note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
	$note->set_layout( 'banner' );
	$note->set_image(
		plugins_url(
			'/images/admin_notes/filter-by-product-variations-note.svg',
			WC_ADMIN_PLUGIN_FILE
		)
	);
	$note->set_name( self::NOTE_NAME );
	$note->set_content_data( (object) array() );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action(
		'learn-more',
		__( 'Learn more', 'woocommerce' ),
		'https://docs.woocommerce.com/document/woocommerce-analytics/#variations-report'
	);

	return $note;
}