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

Automattic\WooCommerce\Admin\Notes

WC_Admin_Notes_Home_Screen_Feedback::get_note() public WC 1.0

Get the note.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$result = WC_Admin_Notes_Home_Screen_Feedback::get_note();

Код WC_Admin_Notes_Home_Screen_Feedback::get_note() WC 4.7.0

<?php
public static function get_note() {
	// Homescreen first accessed at least 12 days ago.
	$homescreen_accessed_time = get_option(
		self::HOMESCREEN_ACCESSED_OPTION_NAME
	);
	if ( ! $homescreen_accessed_time ) {
		return;
	}
	if ( time() - $homescreen_accessed_time < 12 * DAY_IN_SECONDS ) {
		return;
	}

	$note = new WC_Admin_Note();
	$note->set_title( __( 'Help us improve the WooCommerce Home screen', 'woocommerce' ) );
	$note->set_content( __( 'We\'d love your input to shape the future of the WooCommerce Home screen together. Feel free to share any feedback, ideas or suggestions that you have.', 'woocommerce' ) );
	$note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
	$note->set_name( self::NOTE_NAME );
	$note->set_content_data( (object) array() );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action(
		'home-screen-feedback-share-feedback',
		__( 'Share feedback', 'woocommerce' ),
		'https://automattic.survey.fm/home-screen-survey'
	);

	return $note;
}