PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Adding/Editing Custom Variation Field

🎄 Holiday Notice - Support Vacation 🎄

ATTENTION: From December 28, 2025 to January 6, 2026 our support team will be on vacation.

Important information:

  • No ticket responses from December 28 to January 6
  • Support will resume on January 7, 2026
  • 📝 You can still submit tickets during vacation - they will be queued and answered starting January 7
  • ⚠️ Urgent technical issues: Please check our documentation and codex first

🎅 Season's Greetings! 🎅

We want to thank all our amazing customers for your trust and support throughout 2025!
Merry Christmas and Happy New Year to you and your families! 🎉

We wish you:

  • 🚀 Successful online stores
  • 💰 Growing sales
  • 😊 Happy customers
  • 🎯 Achieved goals in 2026

Thank you for being with us! We appreciate every one of you and look forward to continuing our work together in the new year.

Rest, recharge, and see you in 2026!

Best regards,
PluginUs.Net Team

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi, we have added a custom field to product variation via the functions.php and we would like to add this as a column in the editor.

We tried adding the custom field manually in the"Meta Fields" tab as it does not show when we query meta keys by product ID - no luck, did not work.

Here is what we added to the functions.php, we tried using both the"id" and"label" as the key. It displays as a separate column in the editor however, when we apply content to this column it does not reflect in the product variations. So we believe there is a key mis-match or something.

// 1. Add custom field input @ Product Data > Variations > Single Variation

add_action( 'woocommerce_variation_options_pricing', 'bbloomer_add_custom_field_to_variations', 10, 3 );

function bbloomer_add_custom_field_to_variations( $loop, $variation_data, $variation ) {
woocommerce_wp_text_input( array(
'id' => '_media_variation_product_id[' . $loop . ']',
'class' => 'short',
'label' => __( 'Media product Id', 'woocommerce' ),
'value' => get_post_meta( $variation->ID, '_media_variation_product_id', true )
)
);
}

Hello

Ok!  Please drop  me  wp-admin access I will  check  it