Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@woogists
Created July 29, 2022 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogists/509f485c78ac63211be0933cb2c6959e to your computer and use it in GitHub Desktop.
Save woogists/509f485c78ac63211be0933cb2c6959e to your computer and use it in GitHub Desktop.
[Product Vendors] Change the vendor taxonomy name everywhere (front and backend)
add_filter( 'wcpv_vendor_taxonomy_args', 'change_product_vendors_taxonomy_name' );
function change_product_vendors_taxonomy_name( $args ) {
$args['labels']['name'] = __( 'Artists', 'text-domain');
$args['labels']['singular_name'] = __( 'Artist', 'text-domain');
// ... other labels updates
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment