Replace a specific word for BACS payment method in Woocommerce order edit pages
Am new to woocommerce, by using gettext hook am able to replace the text "paid" with "placed" but i want to display this text based on one condition i.e when customer pick wire transfer(bacs) as there was no payment received then only text needs to replace with placed I've attached an image. here you go First let add the Change Text function : 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; } The Condition: Now let's create our