Created
February 1, 2023 13:09
-
-
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/)_
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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