Attachments.php
1 year ago
Attributes.php
4 months ago
DownloadableFiles.php
4 months ago
Linked.php
10 months ago
Meta.php
1 year ago
Post.php
3 months ago
Stock.php
1 year ago
Synchronizer.php
1 year ago
SynchronizerForMeta.php
9 months ago
Taxonomies.php
4 months ago
VariationAttachments.php
1 year ago
VariationMeta.php
8 months ago
VariationTaxonomies.php
8 months ago
Variations.php
1 month ago
Meta.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WCML\Synchronization\Component; |
| 4 | |
| 5 | class Meta extends SynchronizerForMeta { |
| 6 | |
| 7 | /** |
| 8 | * @param \WP_Post $product |
| 9 | * @param int[] $translationsIds |
| 10 | * @param array<int,string> $translationsLanguages |
| 11 | */ |
| 12 | public function run( $product, $translationsIds, $translationsLanguages ) { |
| 13 | $this->deleteOrphanedFields( $product->ID, $translationsIds ); |
| 14 | |
| 15 | foreach ( $translationsIds as $translationId ) { |
| 16 | do_action( 'wcml_after_duplicate_product_post_meta', $product->ID, $translationId, false ); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | } |
| 21 |