Advertisement
majeedraza

WooCommerce - Translate WC Notices

Aug 4th, 2019
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2. // Some WC Notices can't be translated with gettext, Loco Translate or Say What?
  3. // but they can be translated with a filter:
  4. add_filter( 'woocommerce_add_message', 'customize_messages' );
  5. function customize_messages( $message ) {
  6.   $message = str_replace( 'Customer matched zone', 'Zona coincidente del cliente', $message );
  7.   return $message;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement