Skip to content

Instantly share code, notes, and snippets.

View rituhritika90's full-sized avatar

r_madaan rituhritika90

  • Chandigrah
View GitHub Profile
@rituhritika90
rituhritika90 / functions.php
Created March 14, 2016 09:03 — forked from hlashbrooke/functions.php
WooCommerce Product Vendors: Add extra custom fields to vendor profiles
<?php
// Add fields to new vendor form
add_action( 'shop_vendor_add_form_fields', 'custom_add_vendor_fields', 2, 1 );
function custom_add_vendor_fields( $taxonomy ) {
?>
<div class="form-field">
<label for="vendor_website"><?php _e( 'Vendor website' ); ?></label>
<input type="text" name="vendor_data[website]" id="vendor_website" class="vendor_fields" /><br/>
<span class="description"><?php _e( 'The vendor\'s website.' ); ?></span>