Skip to content

Instantly share code, notes, and snippets.

@fervous
Created March 18, 2018 23:50
Show Gist options
  • Save fervous/a12803848ccf362cf0941e3a80e8e011 to your computer and use it in GitHub Desktop.
Save fervous/a12803848ccf362cf0941e3a80e8e011 to your computer and use it in GitHub Desktop.
change dashboard settings store address field labels and placeholders wc vendors pro
/* New City Label and Placeholder */
add_filter('wcv_vendor_store_city', 'custom_wcv_vendor_store_city');
function custom_wcv_vendor_store_city( $args ){
$args['label'] = 'New Label Here';
$args['placeholder'] = 'New Placeholder Here';
return $args;
}
/* New State Label and Placeholder */
add_filter('wcv_vendor_store_state', 'custom_wcv_vendor_store_state');
function custom_wcv_vendor_store_state( $args ){
$args['label'] = 'New Label Here';
$args['placeholder'] = 'New Placeholder Here';
return $args;
}
/* New Postcode Label and Placeholder */
add_filter('wcv_vendor_store_postcode', 'custom_wcv_vendor_store_postcode');
function custom_wcv_vendor_store_postcode( $args ){
$args['label'] = 'New Label Here';
$args['placeholder'] = 'New Placeholder Here';
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment