//). * @param string $badge Optional badge. */ $rtkt_label = static function ( $id, $label, $desc = '', $badge = '' ) { ?>

array(), 'strong' => array(), 'a' => array( 'href' => array(), 'target' => array(), 'rel' => array(), ), ) ); ?>

> >
>
$rtkt_opt ) : ?>
$rtkt_opt ) : ?>
'rtkt[' . esc_attr( $key ) . ']', 'id' => 'rtkt-' . esc_attr( $key ), 'selected' => (int) $value, 'show_option_none' => esc_html__( '— None —', 'returnkit' ), 'option_none_value' => '0', 'class' => 'rtkt-select', ) ); ?>
$rtkt_status_label ) { $rtkt_order_statuses[ preg_replace( '/^wc-/', '', $rtkt_status_key ) ] = $rtkt_status_label; } unset( $rtkt_order_statuses['pending'], $rtkt_order_statuses['cancelled'], $rtkt_order_statuses['refunded'], $rtkt_order_statuses['failed'], $rtkt_order_statuses['checkout-draft'] ); $rtkt_cats = array(); foreach ( is_array( $categories ) ? $categories : array() as $rtkt_term ) { if ( $rtkt_term instanceof \WP_Term ) { $rtkt_cats[ (string) $rtkt_term->term_id ] = $rtkt_term->name; } } $rtkt_helpers = compact( 'rtkt_label', 'rtkt_toggle', 'rtkt_number', 'rtkt_segment', 'rtkt_textarea', 'rtkt_text', 'rtkt_checklist' ); ?>

array( __( 'When the order is completed', 'returnkit' ), __( 'Usually when it ships or is delivered', 'returnkit' ) ), 'created' => array( __( 'When the order is placed', 'returnkit' ), __( 'Simple, but shorter for slow deliveries', 'returnkit' ) ), ) ); $rtkt_checklist( 'return_statuses', __( 'Order statuses that can be returned', 'returnkit' ), '', $rtkt_order_statuses, Settings::lines( 'return_statuses' ) ); $rtkt_toggle( 'guest_returns', __( 'Guest returns', 'returnkit' ), __( 'Customers who checked out without an account can return items through a secure link from their order email or the Returns page.', 'returnkit' ), $s['guest_returns'], __( 'Recommended', 'returnkit' ) ); $rtkt_toggle( 'require_reason', __( 'Ask for a reason', 'returnkit' ), __( 'Customers choose a reason for each item. Withdrawals never need one.', 'returnkit' ), $s['require_reason'] ); $rtkt_reasons = $stored['reasons'] === \ReturnKit\Core\Settings::defaults()['reasons'] ? implode( "\n", \ReturnKit\Domain\Reasons::default_labels() ) : $stored['reasons']; $rtkt_textarea( 'reasons', __( 'Reasons', 'returnkit' ), __( 'One per line, in the order customers see them.', 'returnkit' ), $rtkt_reasons, '', 7 ); ?>

Product data → Advanced.', 'returnkit' ), array( 'strong' => array() ) ); ?>

array( __( 'When the order is completed', 'returnkit' ), __( 'Plus the extra days above', 'returnkit' ) ), 'created' => array( __( 'When the order is placed', 'returnkit' ), __( 'Generous: never too early', 'returnkit' ) ), ) ); $rtkt_segment( 'withdrawal_outside', __( 'After the period', 'returnkit' ), '', $s['withdrawal_outside'], array( 'warn' => array( __( 'Accept and flag it', 'returnkit' ), __( 'You decide; the store can\'t know the delivery date', 'returnkit' ) ), 'block' => array( __( 'Don\'t accept', 'returnkit' ), __( 'The form explains the period has ended', 'returnkit' ) ), ) ); $rtkt_checklist( 'withdrawal_statuses', __( 'Order statuses that can be withdrawn from', 'returnkit' ), '', $rtkt_order_statuses, Settings::lines( 'withdrawal_statuses' ) ); $rtkt_toggle( 'withdrawal_items', __( 'Withdraw from single items', 'returnkit' ), __( 'Customers can pick items and quantities instead of the whole order.', 'returnkit' ), $s['withdrawal_items'] ); $rtkt_checklist( 'withdrawal_exclude_cats', __( 'Categories without a right of withdrawal', 'returnkit' ), __( 'Only for legal exceptions, such as sealed hygiene goods, made-to-order or perishable items. Your terms must say so.', 'returnkit' ), $rtkt_cats, Settings::lines( 'withdrawal_exclude_cats' ) ); $rtkt_text( 'withdrawal_label', __( 'Button label', 'returnkit' ), __( 'The law asks for "withdraw from contract here" or an equally clear wording.', 'returnkit' ), $stored['withdrawal_label'], Settings::text( 'withdrawal_label' ) ); $rtkt_text( 'withdrawal_confirm_label', __( 'Confirmation button label', 'returnkit' ), __( 'The law asks for "confirm withdrawal" or an equally clear wording.', 'returnkit' ), $stored['withdrawal_confirm_label'], Settings::text( 'withdrawal_confirm_label' ) ); $rtkt_toggle( 'withdrawal_in_footer', __( 'Link in the site footer', 'returnkit' ), __( 'The function must be easy to find. Turn this on, or add the withdrawal page to your footer menu, or place [returnkit_withdrawal_button] in your footer.', 'returnkit' ), $s['withdrawal_in_footer'] ); $rtkt_toggle( 'withdrawal_in_account', __( 'Button on orders in My Account', 'returnkit' ), '', $s['withdrawal_in_account'], __( 'Recommended', 'returnkit' ) ); $rtkt_toggle( 'withdrawal_in_emails', __( 'Links in order emails', 'returnkit' ), __( 'Adds the withdrawal link (and the return link on completed orders) to WooCommerce\'s processing, on-hold and completed order emails, and to invoices sent from the order screen.', 'returnkit' ), $s['withdrawal_in_emails'], __( 'Recommended', 'returnkit' ) ); ?>

[returnkit_portal], the withdrawal page [returnkit_withdrawal]. Both were created on activation.', 'returnkit' ), array( 'code' => array() ) ); ?>

' . esc_html__( 'View page', 'returnkit' ) . '
' : '', $s['portal_page'] ); $rtkt_page( 'withdrawal_page', __( 'Withdrawal page', 'returnkit' ), '' !== Access::withdrawal_base() ? '' . esc_html__( 'View page', 'returnkit' ) . '' : '', $s['withdrawal_page'] ); $rtkt_text( 'account_endpoint', __( 'My Account address', 'returnkit' ), __( 'The part after /my-account/ for the Returns section.', 'returnkit' ), $s['account_endpoint'], 'returns' ); ?>

array( __( 'Direct connection', 'returnkit' ), __( 'Default', 'returnkit' ) ), 'cloudflare' => array( __( 'Cloudflare', 'returnkit' ), 'CF-Connecting-IP' ), 'forwarded' => array( __( 'Proxy / load balancer', 'returnkit' ), 'X-Forwarded-For' ), 'real_ip' => array( __( 'Nginx proxy', 'returnkit' ), 'X-Real-IP' ), ) ); $rtkt_toggle( 'turnstile_enabled', __( 'Cloudflare Turnstile', 'returnkit' ), __( 'A free, privacy-friendly challenge from Cloudflare. Create a site key and secret key in your Cloudflare dashboard under Turnstile. When it is on, visitors\' browsers connect to Cloudflare on the public forms.', 'returnkit' ), $s['turnstile_enabled'] ); ?>

WooCommerce → Settings → Emails.', 'returnkit' ), esc_url( admin_url( 'admin.php?page=wc-settings&tab=email' ) ) ), array( 'a' => array( 'href' => array() ) ) ); ?>