add_action( 'wcml_after_custom_prices_block', 'the_callback_function', 10, 1 );
- Tipo
- action
- Categoria
- Funzionalità multivaluta
- Versione di WooCommerce Multilingual
- 3.8.1
Descrizione
- Esegui azioni dopo aver generato il blocco del prezzo personalizzato nell’editor di prodotti nativo di WooCommerce.
- Questa azione viene attivata solo durante la creazione o la modifica dei prodotti originali.
Argomenti
A questa azione viene passato un parametro:- $product_id
- (intero | stringa)L’ID del prodotto in fase di modifica OPPURE il valore stringa
newse il prodotto è in fase di creazione.
Esempio di utilizzo
Esempio
add_action( 'wcml_after_custom_prices_block', 'my_custom_action', 10, 1 );
function my_custom_action( $product_id ) {
// my custom action
}
Hook correlati
wcml_custom_prices_fields_labels, wcml_is_cache_enabled_for_switching_currency, wcml_geolocation_get_user_country, wcml_user_store_strategy, wcml_rounded_price, wcml_currencies_without_cents, wcml_product_custom_prices, wcml_custom_prices_strings, wcml_switch_currency, wcml_custom_prices_fields