Title: Edit text Availability date:
Last modified: December 6, 2023

---

# Edit text Availability date:

 *  Resolved [fxp869](https://wordpress.org/support/users/fxp869/)
 * (@fxp869)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/edit-text-availability-date/)
 * When a customer make an order and goes to confirmation page the following msg
   appears below of the preorder product:
   “Pre-order productAvailability date: January
   1, 2024″I need to change the “Availability Date” text with “Shipping”Thanks in
   advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fedit-text-availability-date%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Alberto Ruggiero](https://wordpress.org/support/users/witcher83/)
 * (@witcher83)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/edit-text-availability-date/#post-17271509)
 * Hello [@fxp869](https://wordpress.org/support/users/fxp869/)
 * please put this code in the functions.php file of your theme:
 *     ```wp-block-code
       add_filter( 'ywpo_order_item_release_date_label', 'my_ywpo_order_item_release_date_label' );
       function my_ywpo_order_item_release_date_label() {
       	return __( 'Shipping: ', 'yith-pre-order-for-woocommerce' );
       }
       ```
   
 *  Thread Starter [fxp869](https://wordpress.org/support/users/fxp869/)
 * (@fxp869)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/edit-text-availability-date/#post-17271928)
 * Thanks it works. actually I edit the code like following to have a full custom
   text:
 *     ```wp-block-code
       add_filter( 'ywpo_order_item_no_date_label_output', '__return_empty_string' );
       if ( ! function_exists( 'ywpo_order_item_release_date_label_custom' ) ) {
       	add_filter( 'ywpo_order_item_release_date_label', 'ywpo_order_item_release_date_label_custom', 10, 3 );
       	function ywpo_order_item_release_date_label_custom( $label, $item, $order ) {
   
       		if ( empty( $item['ywpo_item_for_sale_date'] ) ) {
       			$label = '<div style="color: #9C27B0;" class="noreleasedatepreordermsg">Shipping within 2-3 weeks</div>';
       		}
       		else
       			$label = '<div style="color: #9C27B0;" class="withreleasedatepreordermsg">Shipping 1-2 weeks after its release date - </div>';
       		return __( $label, 'yith-pre-order-for-woocommerce' );
       	}
       }
       ```
   
 * Is it possible to include the release date in this code too?
   Thank you in advanced
    -  This reply was modified 2 years, 5 months ago by [fxp869](https://wordpress.org/support/users/fxp869/).
    -  This reply was modified 2 years, 5 months ago by [fxp869](https://wordpress.org/support/users/fxp869/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Edit text Availability date:’ is closed to new replies.

 * ![](https://ps.w.org/yith-pre-order-for-woocommerce/assets/icon.svg?rev=3307139)
 * [YITH Pre-Order for WooCommerce](https://wordpress.org/plugins/yith-pre-order-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-pre-order-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-pre-order-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-pre-order-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-pre-order-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-pre-order-for-woocommerce/reviews/)

## Tags

 * [change text](https://wordpress.org/support/topic-tag/change-text/)

 * 2 replies
 * 2 participants
 * Last reply from: [fxp869](https://wordpress.org/support/users/fxp869/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/edit-text-availability-date/#post-17271928)
 * Status: resolved