Automattic\WooCommerce\Internal\Admin\Notes
RefundDoubleCountToolNotice::get_note
Get the note.
Метод класса: RefundDoubleCountToolNotice{}
Хуков нет.
Возвращает
Note|null.
Использование
$result = RefundDoubleCountToolNotice::get_note();
Код RefundDoubleCountToolNotice::get_note() RefundDoubleCountToolNotice::get note WC 11.3.0
public static function get_note() {
if ( ! self::is_applicable() ) {
return null;
}
$note = new Note();
$note->set_title( __( 'Check your refunds in Analytics', 'woocommerce' ) );
$note->set_content(
__( 'Orders that received a partial refund followed by a full refund before WooCommerce 11.1 may show higher returns in your Analytics reports than they should. Use the double-counted refunds tool on the Status page to check for affected orders and fix them.', '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(
'refund-double-count-tool_view',
__( 'Check refunds', 'woocommerce' ),
admin_url( 'admin.php?page=wc-status&tab=tools#tool_' . Analytics::REFUND_DOUBLE_COUNT_TOOL_ID ),
Note::E_WC_ADMIN_NOTE_UNACTIONED,
true
);
return $note;
}