Automattic\WooCommerce\Internal\Admin\Notes
PaymentsMoreInfoNeeded::get_note
Get the note.
Метод класса: PaymentsMoreInfoNeeded{}
Хуков нет.
Возвращает
Note.
Использование
$result = PaymentsMoreInfoNeeded::get_note();
Код PaymentsMoreInfoNeeded::get_note() PaymentsMoreInfoNeeded::get note WC 10.3.4
public static function get_note() {
if ( ! self::should_display_note() ) {
return;
}
$content = __( 'We recently asked you if you wanted more information about WooPayments. Run your business and manage your payments in one place with the solution built and supported by WooCommerce.', 'woocommerce' );
$note = new Note();
$note->set_title( __( 'Payments made simple with WooPayments', '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 here', 'woocommerce' ), 'https://woocommerce.com/payments/' );
return $note;
}