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.
// 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
-
/** * This action is documented in Product_Service::stream_rows(). */ do_action( 'wcabe_g2_export_after_chunk' ); -
/** * Allow extensions (Pro) to declare additional schema entries (e.g. * taxonomy_filter). */ apply_filters( 'wcabe_g2_rest_query_args', $args ); -
/** * 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 ); -
/** * 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 ); -
/** * 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', [] ); -
/** * Filters the extension fields the bulk engine can edit (mirrors the * `bulkFields` registry slot and registerField() / registerEditableField()). */ apply_filters( 'wcabe_g2_bulk_fields', [] ); -
/** * 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'] ] ) ); -
/** * 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'] ] ) ); -
/** * 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 ); -
/** * 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 ) ) ), ] :... ); -
/** * Filters the row context of one bulk job (mirrors * `bulkApplyRowContextProvider`). */ apply_filters( 'wcabe_g2_bulk_job_row_context', null, $job_context ); -
/** * 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 ); -
/** * 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 ); -
/** * 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 ); -
/** * 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 ); -
/** * 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 ); -
/** * Allow extensions (Pro) to declare additional export columns. */ apply_filters( 'wcabe_g2_export_extra_columns', [] ); -
/** * Format a Pro-contributed export column's cell value. */ apply_filters( 'wcabe_g2_export_format_cell_value', '', $product, $column ); -
/** * 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 ); -
/** * 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 ); -
/** * 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 ); -
/** * 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', [] ); -
/** * 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' ); -
/** * Filter the named extra Catalog Health scores (Pro's Feed readiness). */ apply_filters( 'wcabe_g2_health_scores', [], $checks ); -
/** * Filters the maximum number of products returned per request. */ apply_filters( 'wcabe_g2_max_per_page', self::MAX_PAGE_SIZE ); -
/** * Filter the maximum number of products per operation. */ apply_filters( 'wcabe_g2_operations_limit', self::OPERATIONS_LIMIT ); -
/** * Allow extensions (Pro) to add filter slots from the request. */ apply_filters( 'wcabe_g2_rest_request_filters', $filters, $request ); -
/** * 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 ); -
/** * Filters whether postmeta reads may be pinned to WP core's `post_id` key. */ apply_filters( 'wcabe_g2_sql_force_postmeta_index', true, $table ); -
/** * Filters whether variations are pre-narrowed in SQL before hydration. */ apply_filters( 'wcabe_g2_sql_narrow_variations', true, $filters ); -
/** * 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 ); -
/** * 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 ); -
/** * 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 ); -
/** * Filter the extension Title-search operators (see above for the entry shape). */ apply_filters( 'wcabe_g2_title_search_operators', [] ); -
/** * Force the WordPress save-hook pipeline on or off for a single product. */ apply_filters( 'wcabe_g2_trigger_wp_save_hooks', $enabled, $product, $changes ); -
/** * 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 ); -
do_action( 'wcabe_g2_before_format_products', $created_ids ); -
woocommerce_product_duplicate_before_save
action Used by 5 plugins → Copy link Customise this hookdo_action( 'woocommerce_product_duplicate_before_save', $duplicate, $source ); -
do_action( 'litespeed_control_set_nocache', 'WPMelon Advanced Bulk Edit REST API' ); -
do_action( 'save_post', $post->ID, $post, true ); -
do_action( "save_post_{$post->post_type}", $post->ID, $post, true ); -
do_action( 'wcabe_g2_after_enqueue_scripts' ); -
do_action( 'wcabe_g2_after_product_save', $product, $changes, $context, $post_before, $save_token ); -
apply_filters( 'wcabe_g2_allowed_fields', $allowed_fields, $product ); -
apply_filters( 'wcabe_g2_batch_item_warnings', $warnings, $product, $changes, $save_token ); -
apply_filters( 'wcabe_g2_batch_limit', self::BATCH_LIMIT ); -
do_action( 'wcabe_g2_before_product_save', $product, $changes, $allowed_fields, $context, $save_token ); -
apply_filters( 'wcabe_g2_bulk_job_idle_cancel_after', self::DEFAULT_IDLE_CANCEL_AFTER ); -
apply_filters( 'wcabe_g2_bulk_job_max_rows', self::DEFAULT_MAX_ROWS ); -
apply_filters( 'wcabe_g2_bulk_job_preview_ttl', self::DEFAULT_PREVIEW_TTL ); -
apply_filters( 'wcabe_g2_bulk_job_run_budget', self::DEFAULT_RUN_BUDGET ); -
apply_filters( 'wcabe_g2_bulk_job_simulate_budget', self::DEFAULT_SIMULATE_BUDGET ); -
apply_filters( 'wcabe_g2_filter_options', $options ); -
apply_filters( 'wcabe_g2_format_product', $data, $product ); -
apply_filters( 'wcabe_g2_format_variation', $data, $variation ); -
do_action( 'wcabe_g2_health_check_scanned', $id, $row ); -
apply_filters( 'wcabe_g2_js_config', $config ); -
do_action( 'wcabe_g2_render_settings_page' ); -
apply_filters( 'wcabe_g2_rest_controllers', $controllers ); -
apply_filters( 'wcabe_g2_validate_extra_fields', $errors, $product, $changes ); -
woocommerce_duplicate_product_exclude_children
filter Used by 4 plugins → Copy link Customise this hookapply_filters( 'woocommerce_duplicate_product_exclude_children', false, $source ); -
woocommerce_duplicate_product_exclude_meta
filter Used by 6 plugins → Copy link Customise this hookapply_filters( 'woocommerce_duplicate_product_exclude_meta', [], array_map( static fn( \WC_Meta_Data $meta ) => $meta->key, $source->get_meta_data() ) ); -
do_action( 'woocommerce_product_duplicate', $duplicate, $source ); -
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.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin 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 thisNot 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: