WordPress action hook

woocommerce_process_product_meta

Fired by 4 WordPress plugins, running on 1,790+ sites between them.

How to use woocommerce_process_product_meta

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_process_product_meta', function( $saved_id, $post_obj ) {
	// Your code runs here.
}, 10, 2 );

Argument names come from BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

4 plugins that fire woocommerce_process_product_meta

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

  1. BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor icon BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor1,000+ installs do_action( 'woocommerce_process_product_meta', $saved_id, $post_obj ) front-end/products/brikpanel-product-editor.php:10691
  2. MarketKing icon MarketKing700+ installs do_action( 'woocommerce_process_product_meta', $id, $product ) includes/class-marketking-core.php:3753
  3. BundleBoss icon BundleBoss90+ installs do_action( 'woocommerce_process_product_meta', $id, get_post( $id ) ) includes/bundle-wizard.php:2516
  4. Super Speedy Imports Lite icon Super Speedy Imports LiteFewer than 10 installs do_action( 'woocommerce_process_product_meta', (int)$post_id, $post ) tools/class-save-posts-tool.php:103

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.