Automattic\WooCommerce\Internal\Admin\Notes
FullRefundFixDataToolNotice::get_note
Get the note.
Метод класса: FullRefundFixDataToolNotice{}
Хуков нет.
Возвращает
Note|null.
Использование
$result = FullRefundFixDataToolNotice::get_note();
Код FullRefundFixDataToolNotice::get_note() FullRefundFixDataToolNotice::get note WC 11.2.2
public static function get_note() {
if ( ! self::is_applicable() ) {
return null;
}
$note = new Note();
$note->set_title( __( 'Fix your refund data in Analytics', 'woocommerce' ) );
$note->set_content(
__( 'We found some refunded orders where the full refund amount was not recorded correctly in your Analytics reports. Use the full refund fix tool on the Status page to re-import the affected data.', 'woocommerce' )
);
$note->set_content_data( (object) array() );
$note->set_type( Note::E_WC_ADMIN_NOTE_WARNING );
$note->set_name( self::NOTE_NAME );
$note->set_source( 'woocommerce-admin' );
$note->add_action(
'full-refund-fix-data-tool_view',
__( 'Fix refund data', 'woocommerce' ),
admin_url( 'admin.php?page=wc-status&tab=tools' ),
Note::E_WC_ADMIN_NOTE_UNACTIONED,
true
);
return $note;
}