AI Verified

Name

Remove "Free Trial" text & Replace "Sign-Up Fee" with "Deposit" for WooCommerce Subscription

About

This code is a WordPress filter that changes the price string of a WooCommerce subscription product. Specifically, it removes the phrase "free trial" and replaces the phrase "sign-up fee" with the word "deposit".

Language

PHP

Rating

Voted: 0 by 0 user(s)

Codevault

FP---Codevault

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.1

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

Website/ Profile URL:

https://frankpurcell.co.za

History

Last modified:

26/03/2023

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Remove "Free Trial" text & Replace "Sign-Up Fee" with "Deposit" for WooCommerce Subscription

 
                    
1add_filter('woocommerce_subscriptions_product_price_string', 'woo_change_subscriptions_product_price_string' );
2function woo_change_subscriptions_product_price_string( $subscription_string ) {
3 
4 $subscription_string = str_replace( 'free trial', "", $subscription_string );
5 $subscription_string = str_replace( 'sign-up fee', "deposit", $subscription_string );
6 
7 return $subscription_string;
8}

0

Related Snippets

Please see some snippets below related to this snippet..

WordPress Admin

Unverified

0

Password Login Page Text Change

Added: 1 week ago

Last Updated: 1 week ago

WordPress Admin

AI Verified

0

Own logo login

Added: 6 months ago

Last Updated: 6 months ago

Own logo login

WordPress Admin

AI Verified

0

Redirect user role on specific page

Added: 1 year ago

Last Updated: 1 year ago

This code will redirect a specific page based on the user role NOT being met.

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WooCommerce

AI Verified

1

Remove WooCommerce Lightbox Zoom

Added: 1 year ago

Last Updated: 1 day ago

Remove the zoom and lightbox features from the WooCommerce product gallery.

WooCommerce

AI Verified

0

WooCommerce Shipping Method Button

Added: 1 year ago

Last Updated: 1 year ago

WooCommerce

AI Verified

0

WooCommerce - My Account - Edit Address - Fix

Added: 1 year ago

Last Updated: 1 year ago

Fixes the issue with the "Edit Address" text missing from the user's My Account menu. This happens due to a language conflict when using English (South African/US), however using English (UK) also res...