My Christmas Advent Calendar for WooCommerce 0.4.0 has 2 actions and 7 filters, read directly from its source code on Nov 19, 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 My Christmas Advent Calendar for WooCommerce fires an action
add_action( 'codefaeries_advent_calendar_before_apply_coupon', function( $coupon, $box, $userId ) {
// Your code runs here.
}, 10, 3 );
// Change a value My Christmas Advent Calendar for WooCommerce is about to use
add_filter( 'codefaeries_advent_calendar_admin_tabs', 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
-
/** * Lets an add-on add, replace or remove settings tabs. */ apply_filters( 'codefaeries_advent_calendar_admin_tabs', array( 'boxes' => array( 'title' => \__('Calendar', 'lws-advent-calendar'), 'render' => array($this, 'boxesTab'), ), 'pro' => array( 'title' => \__('My Christmas Advent Calendar Pro', 'lws-advent-calendar'), 'render' => array($this, 'proTab'), ), ) ); -
/** * HTML an add-on shows after the door, inside the box: a control that may not * sit inside the door button. */ apply_filters( 'codefaeries_advent_calendar_after_door', '', $box, $state, $userId ); -
/** * HTML an add-on shows after the reward, at the bottom of the dialog. Called * for each opened box of the grid. */ apply_filters( 'codefaeries_advent_calendar_after_reward', '', $box, $userId ); -
/** * Lets an add-on prepare the cart before the coupon is applied, such as adding * the product the coupon is for. */ do_action( 'codefaeries_advent_calendar_before_apply_coupon', new \WC_Coupon($code), $box, $userId ); -
/** * Fires once per opening, after it is recorded in the openings table. */ do_action( 'codefaeries_advent_calendar_box_opened', $userId, $boxId ); -
/** * Lets an add-on reorder the boxes of the grid: the order of the page, of the * keyboard and of screen readers. */ apply_filters( 'codefaeries_advent_calendar_boxes', $boxes, $userId ); -
/** * Classes of the door button: today's door takes the classes of the theme's * main WooCommerce button. */ apply_filters( 'codefaeries_advent_calendar_door_class', BoxState::OPENABLE === $state ? $todayClass : 'lws-advent-calendar__door', $box, $state, $userId ); -
/** * Content of the door button, passed through wp_kses_post(); the state text is * what screen readers hear. */ apply_filters( 'codefaeries_advent_calendar_door_content', $door, $box, $state, $userId ); -
/** * Lets an add-on change what the dialog shows for an opened box. */ apply_filters( 'codefaeries_advent_calendar_reward', $reward, $box, $coupon );
Generated from My Christmas Advent Calendar 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: