Product Addons for Woocommerce icon
eCommerce & WooCommerce

Product Addons for Woocommerce hooks reference

  • By acowebs
  • v3.1.10 New
  • Updated

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.

functions.phpyour child theme
// 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

  • includes/compatibility/ml.php line 105 · used in 7 places
    apply_filters( 'wpml_element_trid', null, $post_id );
  • includes/compatibility/ml.php line 106 · used in 7 places
    apply_filters( 'wpml_get_element_translations', null, $trid );
  • includes/main.php line 164 · used in 2 places
    apply_filters( 'active_plugins', get_option('active_plugins') );
  • includes/process/process.php line 285 · used in 2 places
    apply_filters( 'wcpa_form_field', $field, $this->product_id );
  • includes/compatibility/ml.php line 120 · used in 2 places
    apply_filters( 'wpml_active_languages', NULL, 'orderby=id&order=desc' );
  • includes/compatibility/ml.php line 587 · used in 2 places
    apply_filters( 'wpml_object_id', $id, $type, true, $fromDefault ? $this->default_lang : null );
  • includes/compatibility/ml.php line 347 · used in 2 places
    do_action( 'wpml_set_element_language_details', $set_language_args );
  • includes/form.php line 221
    apply_filters( "{self::$CPT}_labels", $labels );
  • includes/form.php line 244
    apply_filters( "{self::$CPT}_register_args", $args, self::$CPT );
  • includes/backend/feedback.php line 114
    apply_filters( 'acowebs_feedback_api_url', self::API_URL );
  • includes/config.php line 51
    apply_filters( 'wcpa_configurations', $values );
  • includes/render/render.php line 68
    apply_filters( 'wcpa_form_render_hook', $hook_simple, $product );
  • includes/order/order.php line 212
    apply_filters( 'wcpa_order_meta_data', $wcpa_meta_data, $item );
  • includes/compatibility/ml.php line 42
    apply_filters( 'wcpa_set_default_lang', $this->current_lang, $this->_active );
  • includes/front.php line 406
    apply_filters( 'woocommerce_add_to_cart_redirect', wc_get_cart_url(), null );
  • includes/process/process.php line 530
    do_action( 'woocommerce_ajax_added_to_cart', $product_id );
  • includes/process/process.php line 543
    apply_filters( 'woocommerce_cart_redirect_after_error', get_permalink($product_id), $product_id );
  • includes/compatibility/ml.php line 35
    apply_filters( 'wpml_current_language', null );
  • includes/compatibility/ml.php line 34
    apply_filters( 'wpml_default_language', null );
  • includes/compatibility/ml.php line 376
    apply_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: