- availability:
-
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.
- type:
- action
- category:
- Multi-currency Feature
- parameters:
-
add_action( 'wcml_after_custom_prices_block', 'the_callback_function', 10, 1 );
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.
- hook example usage:
-
Example
add_action( 'wcml_after_custom_prices_block', 'my_custom_action', 10, 1 ); function my_custom_action( $product_id ) { // my custom action }