Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Rename Processing Time
- This topic has 1 reply, 2 voices, and was last updated 4 years, 8 months ago by Sushobhan.
Viewing 1 reply thread
- AuthorPosts
- April 9, 2020 at 9:15 pm #117344ashley.youngukParticipant
Hello
On the add product form, I would like to rename the label ‘Processing Time’ and I would also like to add an addition css class to the label. How would I do this?
- April 10, 2020 at 10:45 am #117553SushobhanKeymaster
Hello,
Use the following code snippet for your purpose-
add_filter( 'wcfmmp_product_manager_shipping_processing_fileds', function($processing_time_field) { if(isset($processing_time_field['_wcfmmp_processing_time'])) { $processing_time_field['_wcfmmp_processing_time']['label'] = 'Provide The Text You Want To Display'; $processing_time_field['_wcfmmp_processing_time']['label_class'] .= ' new-class-name'; } return $processing_time_field; });
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Thanks!
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.