Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created February 1, 2023 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webtoffee-git/4821f96879b7e34dbb6092781586f9eb to your computer and use it in GitHub Desktop.
Save webtoffee-git/4821f96879b7e34dbb6092781586f9eb to your computer and use it in GitHub Desktop.
To fix compatibility with WP All Import Export plugin - Frequently Bought Together for WooCommerce (https://www.webtoffee.com/product/woocommerce-frequently-bought-together/)_
<?php // do not copy this line
add_action('pmxi_update_post_meta', 'process_all_import_import', 10, 3);
function process_all_import_import($pid, $meta_key, $meta_value) {
if ('wt_fbt_pdt_ids' === $meta_key) {
update_post_meta($pid, $meta_key, $meta_value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment