WPML
add_action( 'wcml_after_custom_prices_block', 'the_callback_function', 10, 1 );
Type
action
WooCommerce Multilingual Version
3.8.1

Description

  • Run actions after generating the custom price block on the WooCommerce native product editor.
  • This action is triggered when creating or editing the original products only.

Arguments

There is one parameter being passed to this action:
$product_id
(integer | string) The ID of editing product OR the string value new if the product is being created.

Example usage

Example
add_action( 'wcml_after_custom_prices_block', 'my_custom_action', 10, 1 );

function my_custom_action( $product_id ) {

	// my custom action

}

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

All 24 Multi-currency Feature hooks →