WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
функция не описана

Automattic\WooCommerce\Admin\Notes

InsightFirstProductAndPayment::get_note() public WC 1.0

Get the note.

{} Это метод класса: InsightFirstProductAndPayment{}

Хуков нет.

Возвращает

Note.

Использование

$result = InsightFirstProductAndPayment::get_note();

Код InsightFirstProductAndPayment::get_note() WC 5.4.1

<?php
public static function get_note() {
	// We want to show the note after 1 day.
	if ( ! self::wc_admin_active_for( DAY_IN_SECONDS ) ) {
		return;
	}

	$note = new Note();
	$note->set_title( __( 'Insight', 'woocommerce' ) );
	$note->set_content( __( 'More than 80% of new merchants add the first product and have at least one payment method set up during the first week.<br><br>Do you find this type of insight useful?', 'woocommerce' ) );
	$note->set_type( Note::E_WC_ADMIN_NOTE_SURVEY );
	$note->set_name( self::NOTE_NAME );
	$note->set_content_data( (object) array() );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action(
		'affirm-insight-first-product-and-payment',
		__( 'Yes', 'woocommerce' ),
		false,
		Note::E_WC_ADMIN_NOTE_ACTIONED,
		false,
		__( 'Thanks for your feedback', 'woocommerce' )
	);

	$note->add_action(
		'affirm-insight-first-product-and-payment',
		__( 'No', 'woocommerce' ),
		false,
		Note::E_WC_ADMIN_NOTE_ACTIONED,
		false,
		__( 'Thanks for your feedback', 'woocommerce' )
	);

	return $note;
}