Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Save custom product data received from Specter in WooCommerce
/**
* Action hook wc_specter_received_product_data
* Save custom product data received from Specter on product updates/changes in Specters system.
*
**/
add_action( 'wc_specter_received_product_data', 'my_custom_product_update' );
function my_custom_product_update( $article ) {
// Update your product here. $article is the returned product data from Specter, stored as an array.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.