Skip to content

Instantly share code, notes, and snippets.

@fervous
Created March 28, 2018 03:21
Show Gist options
  • Save fervous/9077a66de7af9f5e2e7980e8be349748 to your computer and use it in GitHub Desktop.
Save fervous/9077a66de7af9f5e2e7980e8be349748 to your computer and use it in GitHub Desktop.
translate vendor to seller wc vendors pro
/* change vendor to seller */
add_filter( 'gettext', 'wcv_translate_vendor', 999 );
function wcv_translate_vendor( $translated ) {
$translated = str_ireplace( 'vendor', 'seller', $translated );
return $translated;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment