Created
September 7, 2021 04:35
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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