WordPress action hook

woocommerce_run_product_attribute_lookup_update_callback

Fired by 3 WordPress plugins, running on 1,100+ sites between them.

How to use woocommerce_run_product_attribute_lookup_update_callback

It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'woocommerce_run_product_attribute_lookup_update_callback', function( $new_post_id, $arg2 ) {
	// Your code runs here.
}, 10, 2 );

Argument names come from FG PrestaShop to WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

3 plugins that fire woocommerce_run_product_attribute_lookup_update_callback

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. FG PrestaShop to WooCommerce icon FG PrestaShop to WooCommerce800+ installs do_action( 'woocommerce_run_product_attribute_lookup_update_callback', $new_post_id, 1 ) admin/class-fg-prestashop-to-woocommerce-admin.php:2633
  2. FG OpenCart to WooCommerce icon FG OpenCart to WooCommerce200+ installs do_action( 'woocommerce_run_product_attribute_lookup_update_callback', $new_post_id, 1 ) admin/class-fg-opencart-to-woocommerce-admin.php:2433
  3. FG Magento to WooCommerce icon FG Magento to WooCommerce100+ installs do_action( 'woocommerce_run_product_attribute_lookup_update_callback', $new_post_id, 1 ) admin/class-fg-magento-to-woocommerce-admin.php:2345

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.