Automattic\WooCommerce\Internal\Admin\Notes

PaymentsRemindMeLater::get_note()public staticWC 1.0

Get the note.

Метод класса: PaymentsRemindMeLater{}

No Hooks.

Return

Note.

Usage

$result = PaymentsRemindMeLater::get_note();

Code of PaymentsRemindMeLater::get_note() WC 7.1.0

public static function get_note() {
	if ( ! self::should_display_note() ) {
		return;
	}
	$content = __( 'Save up to $800 in fees by managing transactions with WooCommerce Payments. With WooCommerce Payments, you can securely accept major cards, Apple Pay, and payments in over 100 currencies.', 'woocommerce' );

	$note = new Note();
	$note->set_title( __( 'Save big with WooCommerce Payments', 'woocommerce' ) );
	$note->set_content( $content );
	$note->set_content_data( (object) array() );
	$note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
	$note->set_name( self::NOTE_NAME );
	$note->set_source( 'woocommerce-admin' );
	$note->add_action( 'learn-more', __( 'Learn more', 'woocommerce' ), admin_url( 'admin.php?page=wc-admin&path=/wc-pay-welcome-page' ) );
	return $note;
}