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

Automattic\WooCommerce\Admin\Notes

WC_Admin_Notes_WooCommerce_Payments::get_note() public WC 1.0

Add a note about WooCommerce Payments.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$result = WC_Admin_Notes_WooCommerce_Payments::get_note();

Код WC_Admin_Notes_WooCommerce_Payments::get_note() WC 4.7.1

<?php
public static function get_note() {
	$note = new WC_Admin_Note();
	$note->set_title( __( 'Try the new way to get paid', 'woocommerce' ) );
	$note->set_content(
		__( 'Securely accept credit and debit cards on your site. Manage transactions without leaving your WordPress dashboard. Only with <strong>WooCommerce Payments</strong>.', 'woocommerce' ) .
		'<br><br>' .
		sprintf(
			/* translators: 1: opening link tag, 2: closing tag */
			__( 'By clicking "Get started", you agree to our %1$sTerms of Service%2$s', 'woocommerce' ),
			'<a href="https://wordpress.com/tos/" target="_blank">',
			'</a>'
		)
	);
	$note->set_content_data( (object) array() );
	$note->set_type( WC_Admin_Note::E_WC_ADMIN_NOTE_MARKETING );
	$note->set_name( self::NOTE_NAME );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action( 'learn-more', __( 'Learn more', 'woocommerce' ), 'https://woocommerce.com/payments/', WC_Admin_Note::E_WC_ADMIN_NOTE_UNACTIONED );
	$note->add_action( 'get-started', __( 'Get started', 'woocommerce' ), wc_admin_url( '&action=setup-woocommerce-payments' ), WC_Admin_Note::E_WC_ADMIN_NOTE_ACTIONED, true );

	// Create the note as "actioned" if the plugin is already installed.
	if ( self::is_installed() ) {
		$note->set_status( WC_Admin_Note::E_WC_ADMIN_NOTE_ACTIONED );
	}
	return $note;
}