Gift Wrapper for WooCommerce 6.32 has 5 actions and 33 filters, read directly from its source code on Nov 18, 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 Gift Wrapper for WooCommerce fires an action
add_action( 'wcgwp_after_giftwrap_submit_button', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Gift Wrapper for WooCommerce is about to use
add_filter( 'wcgwp_change_thumbnail', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
do_action( 'wcgwp_after_giftwrap_submit_button' ); -
do_action( 'wcgwp_before_giftwrap_submit_button' ); -
apply_filters( 'wcgwp_change_thumbnail', 'thumbnail' ); -
apply_filters( 'wcgwp_hide_details', false ); -
apply_filters( 'giftwrap_exclude_virtual_products', false ); -
apply_filters( 'wcgwp_add_wrap_button_text', $strings['add_wrap_to_order'] ); -
apply_filters( 'wcgwp_add_wrap_message', $strings['add_wrap_message'] ); -
apply_filters( 'wcgwp_add_wrap_prompt', $strings['add_wrap_prompt'] ); -
apply_filters( 'wcgwp_price_html', ' ' . $product->get_price_html(), $product ); -
apply_filters( 'wcgwp_continue_gift_wrap_action', true, $settings ); -
apply_filters( 'wcgwp_modal_size', 'modal-lg' ); -
apply_filters( 'wcgwp_wrap_offerings', __( 'We offer the following gift wrap options:', 'woocommerce-gift-wrapper' ) ); -
apply_filters( 'plugin_locale', $locale, 'woocommerce-gift-wrapper' ); -
apply_filters( 'wcgwp_add_giftwrap_to_order', true ); -
apply_filters( 'wcgwp_add_to_cart_quantity', 1, $_POST ); -
do_action( 'wcgwp_after_add_to_cart', $cart_contents, $product_id, $note ); -
do_action( 'wcgwp_before_add_to_cart', $cart_contents, $product_id, $note ); -
apply_filters( 'wcgwp_change_gateways', $gateways ); -
apply_filters( 'wcgwp_duplicate_product_notice_type', 'error' ); -
apply_filters( 'wcgwp_elementor_get_categories', [ 'woocommerce-elements' ] ); -
apply_filters( 'wcgwp_extra_wrapper_class', $extra_class ); -
apply_filters( 'wcgwp_filter_link_in_cart', $link, $cart_item ); -
apply_filters( 'wcgwp_filter_string', $strings[$key] ); -
apply_filters( 'wcgwp_filter_strings', [ 'add_wrap_prompt' => 'Add gift wrap?', 'add_wrap_message' => 'Add Gift Wrap Message:', 'add_wrap_to_order' => 'Add Gift Wrap to Order', 'cancel' => 'Cancel', 'cancel_wrap' => 'Cancel gift wrap', 'add_wrap_for_x' => 'Add gift wrapping for %s?', 'add_x' => 'Add %s?', 'add_x_for_x' => 'Add %s for %s?', 'wrap_limit' => 'You can only add %s %s to your cart.', 'wrap_details' => 'We offer the follow... ); -
apply_filters( 'wcgwp_order', 'DESC' ); -
apply_filters( 'wcgwp_orderby', 'date' ); -
apply_filters( 'wcgwp_post_args', [ 'category' => array( $category->slug ), 'status' => 'publish', 'stock_status' => 'instock', 'limit' => '-1', 'orderby' => apply_filters( 'wcgwp_orderby', 'date' ), 'order' => apply_filters( 'wcgwp_order', 'DESC' ), 'suppress_filters' => false, ], $category ); -
apply_filters( 'wcgwp_remove_cod_gateway', false ); -
apply_filters( 'wcgwp_v5_checkbox_prompt', true ); -
apply_filters( 'wcgwp_virtual_products_only', $all_virtual_products ); -
apply_filters( 'wcgwp_wrap_added_message', $message, $product_id ); -
apply_filters( 'wcgwp_wrap_posts', wc_get_products( $args ) ); -
apply_filters( 'woocommerce_add_to_cart_notice_type', 'success' ); -
do_action( 'woocommerce_ajax_added_to_cart', $product_id ); -
apply_filters( 'woocommerce_cart_item_removed_notice_type', 'error' ); -
apply_filters( 'woocommerce_cart_limit_message', $message, $limit, $string ); -
woocommerce_cart_product_cannot_add_another_message
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'woocommerce_cart_product_cannot_add_another_message', $message, $product ); -
apply_filters( 'wpml_object_id', $wrap_category_id, 'product_cat', true );
Generated from Gift Wrapper for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: