Skip to content

Instantly share code, notes, and snippets.

@cparkinson
cparkinson / custom_field_for_store_setting
Created August 26, 2016 17:24
Code to add custom usermeta field to WC Vendors Pro store settings page
/* this is in themes functions.php*/
/******product page blurb***********/
function kindeye_store_product_page_blurb(){
if ( class_exists( 'WCVendors_Pro' ) ){
$key = '_wcv_product_page_vendor_blurb';
$value = get_user_meta( get_current_user_id(), $key, true );
// Product Page blurb
WCVendors_Pro_Form_Helper::input( array(
'id' => $key,