WooCommerce - Change paid text in admin panel order details page

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



WooCommerce - Change paid text in admin panel order details page



I am working on woocommerce, I want to replace the "paid" text with "placed" in admin order details page.



I'm searching for hook and searched a lot but no success, please help me.



I've attached an image.



enter image description here




1 Answer
1



you can achieve that by gettext filter :


add_filter('gettext', 'change_text', 20, 3);

function change_text($translated_text, $text, $domain)


switch ($translated_text)

case 'Paid on %1$s @ %2$s':

$translated_text = __('Placed on %1$s @ %2$s', 'woocommerce');
break;



return $translated_text;



enter image description here





Great help, thanks Kashalo, it is working fine. But here am facing one more problem I need this paid to placed only for when customer pick wire transfer as there was no payment received yet. How can i get the those order details here ?
– muraliniceguy97
Aug 13 at 5:37





@muraliniceguy97 you need to wrap this function withing another function so you can check the products now i can't edit my answer if you can ask another question i will be happy to write that code for you
– kashalo
Aug 13 at 8:45





Hi Kashalo, Thanks for the replay,Can you please check here - stackoverflow.com/questions/51818947/…
– muraliniceguy97
Aug 13 at 9:13







By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

make 2 or more post in bootsrap

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3

React Native Navigation and navigating to another Screen problem