How do I add a custom field?

Overview

CodingBunny Bulk Edit PRO allows you to bulk edit any custom field associated with WooCommerce products. These fields can be created via plugins (ACF – Advanced Custom Fields, SCF – Secure Custom Fields, JetEngine…) or via code, as long as they are saved as meta keys associated with the products.

Creating a Custom Field

You can create custom fields in several ways:

  • Plugin (recommended)
    • ACF / SCF / JetEngine: create a field of the desired type and choose the post type “Product” (product) as the location. Save and verify that the slug/metakey is entered correctly (e.g., _acf_fieldname).
  • Manually via code
    • Use update_post_meta($product_id, ‘meta_name’, $value) to save a custom field associated with the product.

Recognizing the Slug (Meta Key)

Doc image optimizer 240 01

Each custom field is saved with a meta key. You can find it as follows:

  • From ACF/SCF/JetEngine, in the field settings you will find “meta key,” “slug,” or “name.”
  • From code, it will be the string used in “update_post_meta.”

How to make it available in Bulk Edit for WooCommerce

Doc image optimizer 240 01
  1. Log in to your WordPress admin panel.
  2. Go to Bulk Edit → Settings → “Manage Custom Fields.”
  3. Fill in:
    • Meta key (slug): Enter the exact meta key of the custom field (e.g., custom_field).
    • Label: A readable name that will appear in the interface (e.g., “Custom Field”).
    • Type: Select the corresponding field type (e.g., “text”).
    • Taxonomy (optional): Only if the field is of the “taxonomy” type, choose the desired taxonomy.
  4. Click “Add New Custom Field” if you want to add more fields.
  5. Click Save Custom Fields.

After adding all custom fields, remember to activate them using the appropriate switches so that they are displayed correctly in the product table or bulk fields.