Title: custom fields required
Last modified: August 8, 2023

---

# custom fields required

 *  [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-required-2/)
 * How can I modify this code having in mind i.e. the custom field with meta key“
   function_name”?
 *     ```wp-block-code
       woocommerce_wp_text_input(
         array(
           'id' => 'special_price',
           'label' => __( 'Wholesaler Price *', 'woocommerce' ),
           'placeholder' => '',
           'desc_tip' => 'true',
           'required' => 'true',
           'description' => __( 'Enter wholesaler price here.', 'woocommerce' )
         )
       );
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-fields-required-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-required-2/#post-16956839)
 * I recommend getting in touch with WooCommerce’s support about this via [https://woocommerce.com/my-account/create-a-ticket/](https://woocommerce.com/my-account/create-a-ticket/)
   if you have any of their paid WooCommerce products or [https://wordpress.org/support/plugin/woocommerce/](https://wordpress.org/support/plugin/woocommerce/)
   if you do not.
 *  Thread Starter [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-required-2/#post-16956851)
 * I dont have woo commerce
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-required-2/#post-16956855)
 * The function you’re asking to modify is `woocommerce_wp_text_input` though, so
   you must.
 *  Thread Starter [sacconi](https://wordpress.org/support/users/sacconi/)
 * (@sacconi)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-required-2/#post-16956894)
 * I found this function on the web and I want to adapt it for my website, I dont
   have woo commerce

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘custom fields required’ is closed to new replies.

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 4 replies
 * 2 participants
 * Last reply from: [sacconi](https://wordpress.org/support/users/sacconi/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/custom-fields-required-2/#post-16956894)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
