You can use a filter to change the text or the min price, this will affect all variable products.
add_filter('woocommerce_variable_price_html', 'custom_price_text', 10, 2);
function custom_price_text( $price, $product ) {
$price="";
$price .= '<span class="from">' . _x('A4 Sample', 'min_price', 'woocommerce') . ' </span>';
$price .= woocommerce_price($product->get_price());
return $price;
}
Related Posts:
- Creating a plugin with dependencies
- How to roll back a WordPress plugin update?
- difference between add_options and register_setting
- How to get current post ID in Contact Form 7 wpcf7_before_send_mail hook action
- How to stop wordpress from changing default .htaccess permissions to 444
- Creating a WordPress admin page without a menu for a plugin
- Using MathJax in text
- Integrating Google Maps with custom marker and hover?
- How To Ignore a Filter On Applying Filter the Content In a Function
- Delivering a file instead of wordpress page
- Plugin to restrict login and unpublish content from an author
- How to use wp-ajax in wp-cron
- How to get list of Scripts in Order of Dependencies
- Is it possible to make shortcodes NOT case sensitive?
- Overriding a function in wordpress
- Woocommerce “out of stock” message [closed]
- TechCrunch WP Asynchronous Tasks plugin still works on v4.7.5? [closed]
- Trigger Autosave or disable unsaved changes dialog
- Cannot access wp-admin after disabling all plugin
- What is Stable Tag in WordPress plugin readme file
- Next and/or previous post content
- How To Clean The Malware Infected & Hacked WordPress Websites? [duplicate]
- How to remove style and js from theme and add your own style and js where shortcode is used?
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- Re-naming a theme/child theme whilst maintaining updates
- Get posts from WP_Query and format them on admin_head
- Redux Framework has an embedded demo. Click here to activate the sample config file
- mp3 audio metadata upload integration: can I autopopulate title, caption, description from id3 tags?
- Can’t Update or Delete Plugins From WordPress
- Set and access global variable
- Insert content of a post into another
- Theme/Plugin installation through url on button click
- Enabling plugin failed because MySQL user do not have CREATE permissions
- Cannot access my wp-admin after installing Gzip compression [closed]
- WordPress Plugin manipulate have_posts()
- Where are theme codes located for WordPress?
- call_user_func_array() expects parameter 1 to be a valid callback
- a weird attribute on every html tag
- Front-end CSS Library for plugin [closed]
- Add bcc to contact from on wordpress
- WordPress Plugins Don’t Automatically Update
- Simply poll & Events Calendar plugins clashing
- WordPress plugin Post Creation [closed]
- Which wordpress theme is compatible Optima Express theme (real estate inventory) plugin?
- Fullscreen gallery plugin [closed]
- How to add support for caching plugins for my own plugin?
- wp_enqueue_scripts
- woocommerce search by sku and title ajax
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- WordPress.org: How to add a plugin for certain countries?
- Webservice credential storage [duplicate]
- Fetch CSS of posts
- Development workflow for WordPress using git – issues with plugins and bloginfo(‘wpurl’)
- Fancybox plugin: triggering on href attribute
- how to convert XML from URL to HTML
- i want to rewrite my custom plugin url
- Apply a Meta tag to one page only
- Can I remove an image from the Gallery without deleting it from the Media Library?
- Strange Cached File in Super Cache
- Wp-minify doesn’t seem to minify my JS code
- eaccelerator PHP error
- Plugin Hook When New Author Added
- Looking for a good way to include php code in posts, but using special include markup rather than direct php code
- How to hide plugin submenu title in drop down in admin panel in wordpress?
- Best approach to make all tags searchable by the wordpress search function
- WordPress – Ultimate Auction for WooCommerce
- Can we hide a certain user in WP?
- Configure upload folder on WoComerce
- Show Custom Post on Frontend
- WordPress to be used more like an app?
- Hooking into the HTML header container
- Why can I not deregister my style and script on custom post type?
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Using multi-dimensional array with filter
- WordPress Admin sub-level menu issue
- Why does WordPress use cookies for /wp-admin and /wp-content/plugins for non-admin users [duplicate]
- PHP header() not available to use in my plugin
- database – multiple wordpress installations using same database – can they share plugin settings?
- HyperDB failover Delay
- Add class as plugin for other plugins
- Display dashboard other than admin user
- Hidden Some Setting on Post or Page [duplicate]
- Creating themes using the one Plugin (Toolkit)
- WordPress Categories from Plugin
- How do I secure a subdomain using UCC SSL?
- How change menu for each user in plugin?
- Check if user is in a group of another site within multisite network [closed]
- Template from scratch: Sidebars not showing widget
- Home not showing in yoast breadcrumb
- Facebook meta tags not working properly on WordPress Site
- Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts
- Redirect url in plugin to somewhere else?
- is there a plugin that allow editing pages from within pages without entering admin panel?
- Site is setup statically – how to make it content managable?
- WordPress site show white screen after updating some plugins (URGENT) [closed]
- How to escape html code?
- plugin translations not reflected in admin dashboard
- Private plugin updating – GitHub zip file changes the plugin directory (with release or branch name)
- add custom filter to plugins page?
- Possible to issue a warning before plugin deletion (i.e., that tables will be deleted)?