Skip to content

Instantly share code, notes, and snippets.

@digitalchild
Created September 7, 2021 04:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalchild/e29fb5ef8c323ad0fd7b5226d26d52c2 to your computer and use it in GitHub Desktop.
Save digitalchild/e29fb5ef8c323ad0fd7b5226d26d52c2 to your computer and use it in GitHub Desktop.
Update the seller info label for settings and sign up forms for WC Vendors Pro
<?php
// Update the label if you're using the wp_editor setting
add_filter( 'wcv_vendor_seller_info_editor', 'wcv_update_editor_seller_info_label' );
function wcv_update_editor_seller_info_label( $label ){
return __( 'Driver Bio', 'wcvendors-pro' );
}
// Update the label if you are using the standard text area setting
add_filter( 'wcv_vendor_seller_info', 'wcv_update_seller_info_label' );
function wcv_update_seller_info_label( $field ){
$field['label'] = __( 'Driver Bio', 'wcvendors-pro' );
return $field;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment