My Christmas Advent Calendar for WooCommerce icon
eCommerce & WooCommerce

My Christmas Advent Calendar for WooCommerce hooks reference

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.

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

  • include/Ui/Admin.php line 50
    /**
     * 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'), ), ) );
  • include/Ui/Shortcode.php line 114
    /**
     * 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 );
  • include/Ui/Shortcode.php line 215
    /**
     * 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 );
  • include/Ui/Ajax.php line 65
    /**
     * 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 );
  • include/Core/Calendar.php line 134
    /**
     * Fires once per opening, after it is recorded in the openings table.
     */
    do_action( 'codefaeries_advent_calendar_box_opened', $userId, $boxId );
  • include/Ui/Shortcode.php line 88
    /**
     * 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 );
  • include/Ui/Shortcode.php line 122
    /**
     * 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 );
  • include/Ui/Shortcode.php line 106
    /**
     * 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 );
  • include/Ui/Shortcode.php line 176
    /**
     * 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.

Plugin 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 this

Not 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: