Skip to content

Instantly share code, notes, and snippets.

@fervous
Forked from digitalchild/functions.php
Last active December 14, 2016 00:42
Show Gist options
  • Save fervous/376f573c72582b9a258afe6abcd250ea to your computer and use it in GitHub Desktop.
Save fervous/376f573c72582b9a258afe6abcd250ea to your computer and use it in GitHub Desktop.
Add a description / tip to fields on the WC Vendors Pro front end.
<?php
add_filter('wcv_product_description', 'custom_wcv_product_description');
function custom_wcv_product_description( $args ){
$args['desc_tip'] = true;
$args['description'] = 'REQUIRED. Describe your product in detail for your customers. Include size, materials &amp; any relevant information here.';
return $args;
}
add_filter('wcv_vendor_store_description', 'custom_wcv_vendor_store_description');
function custom_wcv_vendor_store_description( $args ){
$args['desc_tip'] = true;
$args['description'] = 'Optional. Give a brief, keyword-rich description of your shop. This is used with SEO. This will be shown under your shop banner on your storefront.';
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment