add_action( 'wcml_before_sync_product', 'the_callback_function', 10, 2 );
- Typ
- action
- Kategorie
- Aktualisieren von Inhalten
- Version von WooCommerce Multilingual
- 3.6.3
Beschreibung
- Führen Sie Aktionen aus, bevor WCML Originalprodukte mit ihren übersetzten Produkten synchronisiert.
- Diese Aktion wird vor wcml_before_sync_product_data aufgerufen.
Argumente
Es werden zwei Parameter an diese Aktion übergeben:- $original_product_id
- (integer) Die ID des Originalprodukts.
- $translated_product_id
- (integer) Die ID des übersetzten Produkts.
Anwendungsbeispiel
Beispiel
add_action( 'wcml_before_sync_product', 'my_custom_action', 10, 2 );
function my_custom_action( $original_product_id, $translated_product_id ) {
// my custom action
}
Verwandte Hooks
wcml_after_duplicate_product_post_meta, wcml_update_extra_fields, wcml_js_lock_fields_ids, wcml_js_lock_fields_input_names, wcml_js_lock_fields_classes, wcml_before_sync_product_data