Files
shuffle_and_skirmish_website/wp-content/plugins/woocommerce-payments/includes/notes/class-wc-payments-notes-instant-deposits-eligible.php
2025-11-24 21:33:55 +00:00

62 lines
1.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Notify merchant that they are eligible for Instant Deposits.
*
* @package WooCommerce\Payments\Admin
*/
use Automattic\WooCommerce\Admin\Notes\Note;
use Automattic\WooCommerce\Admin\Notes\NoteTraits;
defined( 'ABSPATH' ) || exit;
/**
* Class WC_Payments_Notes_Instant_Deposits_Eligible
*/
class WC_Payments_Notes_Instant_Deposits_Eligible {
use NoteTraits;
/**
* Name of the note for use in the database.
*/
const NOTE_NAME = 'wc-payments-notes-instant-deposits-eligible';
/**
* Get the note.
*/
public static function get_note() {
$note = new Note();
$note->set_title(
sprintf(
/* translators: %s: WooPayments */
__( 'Youre now eligible to receive Instant Payouts with %s', 'woocommerce-payments' ),
'WooPayments'
)
);
$note->set_content(
WC_Payments_Utils::esc_interpolated_html(
sprintf(
/* translators: %s: WooPayments */
__( "Get immediate access to your funds when you need them including nights, weekends, and holidays. With %s' <a>Instant Payouts feature</a>, you're able to transfer your earnings to a debit card within minutes.", 'woocommerce-payments' ),
'WooPayments'
),
[ 'a' => '<a href="https://woocommerce.com/document/woopayments/payouts/instant-payouts/">' ]
)
);
$note->set_content_data( (object) [] );
$note->set_type( Note::E_WC_ADMIN_NOTE_INFORMATIONAL );
$note->set_name( self::NOTE_NAME );
$note->set_source( 'woocommerce-payments' );
$note->add_action(
self::NOTE_NAME,
__( 'Request an instant payout', 'woocommerce-payments' ),
'https://woocommerce.com/document/woopayments/payouts/instant-payouts/#request-an-instant-payout',
'unactioned',
true
);
return $note;
}
}