add_action( 'wcml_after_custom_prices_block', 'the_callback_function', 10, 1 );
- Type
- action
- Category
- Multi-currency Feature
- 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
newif 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
}
Related hooks
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