Automattic\WooCommerce\Internal\Admin\Notes
PaymentsMoreInfoNeeded::get_note
Get the note.
Method of the class: PaymentsMoreInfoNeeded{}
No Hooks.
Returns
Note.
Usage
$result = PaymentsMoreInfoNeeded::get_note();
PaymentsMoreInfoNeeded::get_note() PaymentsMoreInfoNeeded::get note code WC 10.6.2
public static function get_note() {
if ( ! self::should_display_note() ) {
return;
}
/* translators: %s: Payment provider name. */
$content = sprintf( __( 'We recently asked you if you wanted more information about %s. Run your business and manage your payments in one place with the solution built and supported by WooCommerce.', 'woocommerce' ), 'WooPayments' );
$note = new Note();
/* translators: %s: Payment provider name. */
$note->set_title( sprintf( __( 'Payments made simple with %s', 'woocommerce' ), 'WooPayments' ) );
$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 here', 'woocommerce' ), 'https://woocommerce.com/payments/' );
return $note;
}