WPMelon Advanced Bulk Edit for WooCommerce icon
eCommerce & WooCommerce

WPMelon Advanced Bulk Edit for WooCommerce hooks reference

  • By wpmelon
  • v1.6.0 New
  • Updated

WPMelon Advanced Bulk Edit for WooCommerce 1.6.0 has 16 actions and 48 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when WPMelon Advanced Bulk Edit for WooCommerce fires an action
add_action( 'wcabe_g2_export_after_chunk', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value WPMelon Advanced Bulk Edit for WooCommerce is about to use
add_filter( 'wcabe_g2_rest_query_args', function( $args ) {
	// Change $args here.
	return $args;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/Services/Bulk_Job_Service.php line 1618 · used in 3 places
    /**
     * This action is documented in Product_Service::stream_rows().
     */
    do_action( 'wcabe_g2_export_after_chunk' );
  • includes/REST/Export_Controller.php line 341 · used in 2 places
    /**
     * Allow extensions (Pro) to declare additional schema entries (e.g.
     * taxonomy_filter).
     */
    apply_filters( 'wcabe_g2_rest_query_args', $args );
  • includes/Services/Product_Service.php line 7968 · used in 2 places
    /**
     * Filters whether variations are ordered under their parent in SQL for the
     * active sort (#247). Return false to keep WooCommerce's child order; the
     * parent ranking is unaffected.
     */
    apply_filters( 'wcabe_g2_sql_order_variations', true, $filters );
  • includes/Services/Bulk_Engine.php line 649
    /**
     * Computes an operation Free does not know (mirrors the `bulkOperations`
     * registry slot): Pro's regex replace and SKU generator. Return null to leave
     * the value unchanged, like TypeScript's `result ?? currentValue`. Server
     * only: return a WP_Error when the operation cannot compute at all (a PCRE
     * limit), and the result is invalid with its message. The message must not
     * quote the value or the operation...
     */
    apply_filters( 'wcabe_g2_bulk_compute_value', null, $current, $operation, $context, $this->price_decimals );
  • includes/Services/Bulk_Field_Registry.php line 242
    /**
     * Filters the operations extensions add to a bulk type (mirrors the
     * `extraOperations` registry slot and its `applicableFields`): Pro's regex
     * replace on every text field, its SKU generator on `sku`.
     */
    apply_filters( 'wcabe_g2_bulk_extra_operations', [] );
  • includes/Services/Bulk_Field_Registry.php line 197
    /**
     * Filters the extension fields the bulk engine can edit (mirrors the
     * `bulkFields` registry slot and registerField() / registerEditableField()).
     */
    apply_filters( 'wcabe_g2_bulk_fields', [] );
  • includes/Services/Bulk_Job_Service.php line 1895
    /**
     * Fires at the end of every apply step that took the job's lease (the tab's,
     * an agent's or each one of a WP-Cron tick's), also when the step threw. A
     * tick runs several steps in one request, so request-scoped work belongs here
     * rather than on `shutdown`: Pro's Operation History flushes the entries a
     * failed save left staged.
     */
    do_action( 'wcabe_g2_bulk_job_after_step', array_merge( $request, [ 'uuid' => (string) $job['uuid'] ] ) );
  • includes/Services/Bulk_Job_Service.php line 1873
    /**
     * Fires before a bulk job does work: at the start of every simulate request,
     * of apply, and of every apply step (the tab's, an agent's or WP-Cron's). The
     * job's stored context (`context`, from `wcabe_g2_bulk_job_stored_context`)
     * wins over the request's: Pro's WPML handler switches to the job's language
     * here. A listener may throw to stop the work: the job fails with its message.
     */
    do_action( 'wcabe_g2_bulk_job_context', array_merge( $request, [ 'uuid' => (string) $job['uuid'] ] ) );
  • includes/Services/Bulk_Engine.php line 105
    /**
     * Filters the operation keys bulk jobs read. An extension that computes from
     * an extra key (through `wcabe_g2_bulk_compute_value` or
     * `wcabe_g2_bulk_modify_computed_value`) adds it here.
     */
    apply_filters( 'wcabe_g2_bulk_job_operation_keys', self::WIRE_KEYS );
  • includes/Services/Bulk_Job_Service.php line 1169
    /**
     * Filters a bulk job's preview detail as each row is computed. Free keeps
     * none; Pro collects its before / after samples and per-field counts here
     * (#300). The detail is stored with the job and returned as `detail` in the
     * status of a ready preview when non-empty (#304).
     */
    apply_filters( 'wcabe_g2_bulk_job_preview_detail', $detail, $row, array_merge( $result, [ 'state' => $state, 'changes' => $changes, 'messages' => $messages, 'dropped' => array_values( array_map( 'strval', array_keys( array_diff_key( $result['changes'], $changes ) ) ) ), ], false === $member ? [ 'invalid' => [], 'dropped' => array_values( array_unique( array_map( static fn( $op ): string => (string) ( $op['field'] ?? '' ), $operations ) ) ), ] :... );
  • includes/Services/Bulk_Engine.php line 150
    /**
     * Filters the row context of one bulk job (mirrors
     * `bulkApplyRowContextProvider`).
     */
    apply_filters( 'wcabe_g2_bulk_job_row_context', null, $job_context );
  • includes/Services/Bulk_Job_Service.php line 275
    /**
     * Filters what a bulk job keeps of the request that created it, for its later
     * steps: the steps run in other requests (the tab's, WP-Cron's), and the
     * stored context wins over theirs. Pro's WPML handler stores the job's
     * language here and switches to it on `wcabe_g2_bulk_job_context`.
     */
    apply_filters( 'wcabe_g2_bulk_job_stored_context', [], $args );
  • includes/Services/Bulk_Job_Service.php line 2233
    /**
     * Filters the term-list bulk fields whose new terms a bulk job creates once,
     * before its first step, and reports in its preview. Each new term is looked
     * up by name under its parent (Term_Helper::find_existing_term()), the lookup
     * the save path uses, and created when missing.
     */
    apply_filters( 'wcabe_g2_bulk_job_term_taxonomies', self::TERM_FIELD_TAXONOMIES );
  • includes/Services/Bulk_Engine.php line 171
    /**
     * Filters a computed bulk value before it is normalised and validated (mirrors
     * the `modifyComputedValue` chain; hook priority sets the order).
     */
    apply_filters( 'wcabe_g2_bulk_modify_computed_value', $value, $operation, $context );
  • includes/Services/Bulk_Operation_Validator.php line 83
    /**
     * Filters the errors of a request's bulk operations, for operations Free does
     * not validate itself (mirrors the `bulkOperationCrossCuttingValidators` and
     * `validators` registry slots and the find-and-replace operation set).
     */
    apply_filters( 'wcabe_g2_bulk_validate_operations', $errors, array_values( $operations ), $context );
  • includes/Services/Product_Service.php line 976
    /**
     * Whether to compute the "with variations" count for this filter set. Hosts
     * that see measurable load from the extra query can switch it off.
     */
    apply_filters( 'wcabe_g2_compute_variation_total', true, $filters );
  • includes/Services/Export_Service.php line 183
    /**
     * Allow extensions (Pro) to declare additional export columns.
     */
    apply_filters( 'wcabe_g2_export_extra_columns', [] );
  • includes/Services/Export_Service.php line 350
    /**
     * Format a Pro-contributed export column's cell value.
     */
    apply_filters( 'wcabe_g2_export_format_cell_value', '', $product, $column );
  • includes/Services/Product_Service.php line 4150
    /**
     * Allow extensions (Pro) to add query args (e.g. wcabe_taxonomy_filter) before
     * WC's data store builds its tax_query. Pro independently hooks
     * woocommerce_product_data_store_cpt_get_products_query to translate its own
     * wcabe_* keys into tax_query clauses.
     */
    apply_filters( 'wcabe_g2_get_products_args', $args, $filters );
  • includes/Services/Health_Scan_Service.php line 51
    /**
     * Filter the statement timeout of each Catalog Health count, in milliseconds.
     * A count that runs out is shown as "too slow to count", never as 0.
     */
    apply_filters( 'wcabe_g2_health_check_budget_ms', self::DEFAULT_BUDGET_MS );
  • includes/Services/Health_Check_Registry.php line 179
    /**
     * Filter a Catalog Health check's fix: the Bulk Edit rows "Fix in bulk"
     * prefills (Pro's SKU generator for missing SKUs, #372). Null removes it.
     */
    apply_filters( 'wcabe_g2_health_check_fix', $own, $id, $check );
  • includes/Services/Health_Check_Registry.php line 73
    /**
     * Filter the extension Catalog Health checks (Pro's feed pack, watched views).
     * Each entry has the shape documented on Health_Check_Registry; an entry with
     * a core check's id, or a malformed one, is dropped with _doing_it_wrong().
     */
    apply_filters( 'wcabe_g2_health_checks', [] );
  • includes/Services/Health_Core_Checks.php line 391
    /**
     * Filter a condition under which another holder of the same SKU is the same
     * item and not a duplicate — a translation, where a multilingual plugin
     * keeps one SKU per translation group and relaxes WooCommerce's uniqueness
     * check to match (WCML's `wc_product_has_unique_sku` callback). Pro's WPML
     * support supplies it. Applied as `AND NOT ( condition )`; '' adds nothing.
     */
    apply_filters( 'wcabe_g2_health_duplicate_sku_same_item', '', 'hc_l1.product_id', 'hc_l2.product_id' );
  • includes/Services/Health_Scan_Service.php line 293
    /**
     * Filter the named extra Catalog Health scores (Pro's Feed readiness).
     */
    apply_filters( 'wcabe_g2_health_scores', [], $checks );
  • includes/Helpers/Page_Size_Helper.php line 54
    /**
     * Filters the maximum number of products returned per request.
     */
    apply_filters( 'wcabe_g2_max_per_page', self::MAX_PAGE_SIZE );
  • includes/REST/Operations_Controller.php line 113
    /**
     * Filter the maximum number of products per operation.
     */
    apply_filters( 'wcabe_g2_operations_limit', self::OPERATIONS_LIMIT );
  • includes/REST/Products_Controller.php line 599
    /**
     * Allow extensions (Pro) to add filter slots from the request.
     */
    apply_filters( 'wcabe_g2_rest_request_filters', $filters, $request );
  • includes/Services/Product_Service.php line 6559
    /**
     * Filter the server-sort spec table. Extensions add entries for the columns
     * they contribute (same shape as the built-in entries); the key becomes an
     * accepted REST `orderby` value.
     */
    apply_filters( 'wcabe_g2_sort_specs', $specs );
  • includes/Services/Product_Service.php line 5919
    /**
     * Filters whether postmeta reads may be pinned to WP core's `post_id` key.
     */
    apply_filters( 'wcabe_g2_sql_force_postmeta_index', true, $table );
  • includes/Services/Product_Service.php line 1513
    /**
     * Filters whether variations are pre-narrowed in SQL before hydration.
     */
    apply_filters( 'wcabe_g2_sql_narrow_variations', true, $filters );
  • includes/Services/Product_Service.php line 5640
    /**
     * Filters whether the description filter with variations reads the parents of
     * the matching variations in one pass over the `_variation_description` rows,
     * instead of a subquery that probes every variation's meta.
     */
    apply_filters( 'wcabe_g2_sql_prefilter_description', true );
  • includes/Services/Product_Service.php line 5599
    /**
     * Filters whether the SKU / GTIN filter with variations reads the parents of
     * the matching variations in one pass over the meta key's rows, instead of a
     * subquery MySQL runs once per product.
     */
    apply_filters( 'wcabe_g2_sql_prefilter_sku_gtin', true, $child_meta_key );
  • includes/Services/Product_Service.php line 7737
    /**
     * Filters whether the stock-status filter with variations reads the matching
     * products and variation parents in one pass over the _stock_status rows,
     * instead of probing each product and variation.
     */
    apply_filters( 'wcabe_g2_sql_prefilter_stock_status', true, $filters );
  • includes/Services/Product_Service.php line 175
    /**
     * Filter the extension Title-search operators (see above for the entry shape).
     */
    apply_filters( 'wcabe_g2_title_search_operators', [] );
  • includes/Handlers/WP_Save_Hooks_Handler.php line 221
    /**
     * Force the WordPress save-hook pipeline on or off for a single product.
     */
    apply_filters( 'wcabe_g2_trigger_wp_save_hooks', $enabled, $product, $changes );
  • includes/Services/View_Service.php line 252
    /**
     * Fires after a user's saved view was deleted (#374): Pro stops watching it in
     * Catalog Health, whatever path deleted it.
     */
    do_action( 'wcabe_g2_view_deleted', $user_id, $view_id );
  • includes/Services/Operations_Service.php line 340 · used in 4 places
    do_action( 'wcabe_g2_before_format_products', $created_ids );
  • includes/Services/Operations_Service.php line 250 · used in 2 places
    do_action( 'woocommerce_product_duplicate_before_save', $duplicate, $source );
  • includes/Handlers/Rest_Page_Cache_Handler.php line 52
    do_action( 'litespeed_control_set_nocache', 'WPMelon Advanced Bulk Edit REST API' );
  • includes/Handlers/WP_Save_Hooks_Handler.php line 257
    do_action( 'save_post', $post->ID, $post, true );
  • includes/Handlers/WP_Save_Hooks_Handler.php line 256
    do_action( "save_post_{$post->post_type}", $post->ID, $post, true );
  • includes/Admin.php line 410
    do_action( 'wcabe_g2_after_enqueue_scripts' );
  • includes/Services/Product_Service.php line 2431
    do_action( 'wcabe_g2_after_product_save', $product, $changes, $context, $post_before, $save_token );
  • includes/Services/Product_Service.php line 2725
    apply_filters( 'wcabe_g2_allowed_fields', $allowed_fields, $product );
  • includes/Services/Product_Service.php line 2420
    apply_filters( 'wcabe_g2_batch_item_warnings', $warnings, $product, $changes, $save_token );
  • includes/REST/Products_Controller.php line 54
    apply_filters( 'wcabe_g2_batch_limit', self::BATCH_LIMIT );
  • includes/Services/Product_Service.php line 2395
    do_action( 'wcabe_g2_before_product_save', $product, $changes, $allowed_fields, $context, $save_token );
  • includes/Services/Bulk_Job_Service.php line 794
    apply_filters( 'wcabe_g2_bulk_job_idle_cancel_after', self::DEFAULT_IDLE_CANCEL_AFTER );
  • includes/Services/Bulk_Job_Service.php line 204
    apply_filters( 'wcabe_g2_bulk_job_max_rows', self::DEFAULT_MAX_ROWS );
  • includes/Services/Bulk_Job_Service.php line 290
    apply_filters( 'wcabe_g2_bulk_job_preview_ttl', self::DEFAULT_PREVIEW_TTL );
  • includes/Services/Bulk_Job_Service.php line 1300
    apply_filters( 'wcabe_g2_bulk_job_run_budget', self::DEFAULT_RUN_BUDGET );
  • includes/Services/Bulk_Job_Service.php line 1011
    apply_filters( 'wcabe_g2_bulk_job_simulate_budget', self::DEFAULT_SIMULATE_BUDGET );
  • includes/Services/Filter_Service.php line 77
    apply_filters( 'wcabe_g2_filter_options', $options );
  • includes/Helpers/Product_Helper.php line 358
    apply_filters( 'wcabe_g2_format_product', $data, $product );
  • includes/Helpers/Product_Helper.php line 826
    apply_filters( 'wcabe_g2_format_variation', $data, $variation );
  • includes/Services/Health_Scan_Service.php line 77
    do_action( 'wcabe_g2_health_check_scanned', $id, $row );
  • includes/Admin.php line 307
    apply_filters( 'wcabe_g2_js_config', $config );
  • includes/Admin.php line 101
    do_action( 'wcabe_g2_render_settings_page' );
  • includes/Main.php line 78
    apply_filters( 'wcabe_g2_rest_controllers', $controllers );
  • includes/Services/Product_Service.php line 2728
    apply_filters( 'wcabe_g2_validate_extra_fields', $errors, $product, $changes );
  • includes/Services/Operations_Service.php line 282
    apply_filters( 'woocommerce_duplicate_product_exclude_children', false, $source );
  • includes/Services/Operations_Service.php line 659
    apply_filters( 'woocommerce_duplicate_product_exclude_meta', [], array_map( static fn( \WC_Meta_Data $meta ) => $meta->key, $source->get_meta_data() ) );
  • includes/Services/Operations_Service.php line 294
    do_action( 'woocommerce_product_duplicate', $duplicate, $source );
  • includes/Handlers/WP_Save_Hooks_Handler.php line 258
    do_action( 'wp_insert_post', $post->ID, $post, true );

Generated from WPMelon Advanced Bulk Edit for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: