PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Replace fields with text

This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see blue-green button on the right side) and press Save button.
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi there

We have a lot of prices with commas and we need to take the commas out so its just text.

Is there a way to take out all commas or make field text only ?

Please see screenshot https://ibb.co/ZzLdW19

Thank you!

Hello

Unfortunately the plugin does not have this feature.

You need custom code to change these fields.

You  can  use  this  hook - wpbe_before_update_post_field

An Example:

add_filter('wpbe_before_update_post_field', function($value, $post_id, $field_key){

if($field_key == 'your_key'){

$value = str_replace(',', '', $value);

}

return $value;

});