Product Addons for Woocommerce 3.1.10 has 2 actions and 18 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Product Addons for Woocommerce fires an action
add_action( 'wpml_set_element_language_details', function( $set_language_args ) {
// Your code runs here.
}, 10, 1 );
// Change a value Product Addons for Woocommerce is about to use
add_filter( 'wpml_element_trid', function( $value, $post_id ) {
// Change $value here.
return $value;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
wpml_element_trid
filterapply_filters( 'wpml_element_trid', null, $post_id ); -
apply_filters( 'wpml_get_element_translations', null, $trid ); -
active_plugins
filterapply_filters( 'active_plugins', get_option('active_plugins') ); -
wcpa_form_field
filterapply_filters( 'wcpa_form_field', $field, $this->product_id ); -
wpml_active_languages
filterapply_filters( 'wpml_active_languages', NULL, 'orderby=id&order=desc' ); -
wpml_object_id
filterapply_filters( 'wpml_object_id', $id, $type, true, $fromDefault ? $this->default_lang : null ); -
do_action( 'wpml_set_element_language_details', $set_language_args ); -
{self::$CPT}_labels
filterapply_filters( "{self::$CPT}_labels", $labels ); -
{self::$CPT}_register_args
filterapply_filters( "{self::$CPT}_register_args", $args, self::$CPT ); -
acowebs_feedback_api_url
filterapply_filters( 'acowebs_feedback_api_url', self::API_URL ); -
wcpa_configurations
filterapply_filters( 'wcpa_configurations', $values ); -
wcpa_form_render_hook
filterapply_filters( 'wcpa_form_render_hook', $hook_simple, $product ); -
wcpa_order_meta_data
filterapply_filters( 'wcpa_order_meta_data', $wcpa_meta_data, $item ); -
wcpa_set_default_lang
filterapply_filters( 'wcpa_set_default_lang', $this->current_lang, $this->_active ); -
apply_filters( 'woocommerce_add_to_cart_redirect', wc_get_cart_url(), null ); -
do_action( 'woocommerce_ajax_added_to_cart', $product_id ); -
apply_filters( 'woocommerce_cart_redirect_after_error', get_permalink($product_id), $product_id ); -
wpml_current_language
filterapply_filters( 'wpml_current_language', null ); -
wpml_default_language
filterapply_filters( 'wpml_default_language', null ); -
wpml_post_language_details
filterapply_filters( 'wpml_post_language_details', null, $postId );
Generated from Product Addons for Woocommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: