Attachments.php
1 week ago
Attributes.php
1 week ago
DownloadableFiles.php
1 week ago
Linked.php
1 week ago
Meta.php
1 week ago
Post.php
1 week ago
Stock.php
1 week ago
Synchronizer.php
1 week ago
SynchronizerForMeta.php
1 week ago
Taxonomies.php
1 week ago
VariationAttachments.php
1 week ago
VariationMeta.php
1 week ago
VariationTaxonomies.php
1 week ago
Variations.php
1 week ago
Meta.php
16 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WCML\Synchronization\Component; |
| 4 | |
| 5 | class Meta extends SynchronizerForMeta { |
| 6 | |
| 7 | public function run( $product, $translationsIds, $translationsLanguages ) { |
| 8 | $this->deleteOrphanedFields( $product->ID, $translationsIds ); |
| 9 | |
| 10 | foreach ( $translationsIds as $translationId ) { |
| 11 | do_action( 'wcml_after_duplicate_product_post_meta', $product->ID, $translationId, false ); |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | } |
| 16 |