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

Automattic\WooCommerce\Admin\Notes

UnsecuredReportFiles::get_note() public WC 1.0

Get the note.

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

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

Хуков нет.

Возвращает

Note|null.

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

$result = UnsecuredReportFiles::get_note();

Код UnsecuredReportFiles::get_note() WC 5.8.0

public static function get_note() {
	$note = new Note();
	$note->set_title( __( 'Potentially unsecured files were found in your uploads directory', 'woocommerce' ) );
	$note->set_content(
		sprintf(
			/* translators: 1: opening analytics docs link tag. 2: closing link tag */
			__( 'Files that may contain %1$sstore analytics%2$s reports were found in your uploads directory - we recommend assessing and deleting any such files.', 'woocommerce' ),
			'<a href="https://docs.woocommerce.com/document/woocommerce-analytics/" target="_blank">',
			'</a>'
		)
	);
	$note->set_content_data( (object) array() );
	$note->set_type( Note::E_WC_ADMIN_NOTE_ERROR );
	$note->set_name( self::NOTE_NAME );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action(
		'learn-more',
		__( 'Learn more', 'woocommerce' ),
		'https://developer.woocommerce.com/?p=10410',
		Note::E_WC_ADMIN_NOTE_UNACTIONED,
		true
	);
	$note->add_action(
		'dismiss',
		__( 'Dismiss', 'woocommerce' ),
		wc_admin_url(),
		Note::E_WC_ADMIN_NOTE_ACTIONED,
		false
	);

	return $note;
}