Skip to content

Instantly share code, notes, and snippets.

@fervous
Forked from bentasm1/functions.php
Created September 3, 2016 04:21
Show Gist options
  • Save fervous/738a641c4bfba1339ada72b87dd5a569 to your computer and use it in GitHub Desktop.
Save fervous/738a641c4bfba1339ada72b87dd5a569 to your computer and use it in GitHub Desktop.
WC Vendors Pro - Placeholder for Description and Title
/* WC Vendors Pro - Custom Description Placeholder Text */
function custom_wcv_product_description( $args ) {
$args = array(
'placeholder' => __( 'Placeholder Text Here', 'wcvendors-pro' )
);
return $args;
}
add_filter( 'wcv_product_description', 'custom_wcv_product_description');
/* WC Vendors Pro - Custom Title Placeholder Text */
function custom_wcv_product_title( $args ) {
$args = array(
'placeholder' => __( 'Placeholder Text Here', 'wcvendors-pro' )
);
return $args;
}
add_filter( 'wcv_product_title', 'custom_wcv_product_title');
@fervous
Copy link
Author

fervous commented Sep 24, 2016

This does not work correctly... prevents product edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment