Rename Processing Time

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 1 reply thread
  • Author
    Posts
    • #117344
      ashley.younguk
      Participant

      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?

    • #117553
      Sushobhan
      Keymaster

      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!

Viewing 1 reply thread
  • You must be logged in to reply to this topic.