Cette extension n’a pas été testée avec plus de trois mises à jour majeures de WordPress. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

Dispatch Countdown


Specify a time to show (and start) the count down, and an end time to count down to.

Ideal for displaying a message such as « For same day dispatch, order within 1h 37m ».

Captures d’écran

  • Frontend view
  • Backend view


This section describes how to install the plugin and get it working.

  1. Upload the plugin files to the /wp-content/plugins/dispatch-countdown directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the WooCommerce->Settings->Product Settings->Dispatch Countdown screen to configure the plugin


How do I move the countdown?

The countdown must be called at a point where global $product is available, so
make sure to call this plugin after WooCommerce has loaded. To move the
countdown, you can remove the action and then add it back wherever you want:

 * Move dispatch countdown
function your_theme_move_dispatch_countdown() {
    // Check the class exists
    if ( ! class_exists( 'Dispatch_Countdown' ) ) {

    // Get the current instance
    $dispatch_countdown = Dispatch_Countdown::get_public_instance();

    // Remove the action
    remove_action( 'woocommerce_before_single_product', array( $dispatch_countdown, 'display_countdown' ) );

    // Add the action back where you like
    add_action( 'your_theme_before_main_container', array( $dispatch_countdown, 'display_countdown' ) );
add_action( 'init', 'your_theme_move_dispatch_countdown' );

Replacing your_theme_before_main_container with whichever hook you wish

How do I change the HTML output?

There are a few filters available to override certain parts of the output. The
main filter is dispatch_countdown_content and can be used as follows:

 * Change countdown HTML output
 * NOTE: You must include an element with the id of dispatch-countdown__time`

* as javascript uses this to update the countdown.
function your_theme_dispatch_countdown_content ( $html, $wording, $product, $countdown ) {
// Add the wording
$countdown_html = esc_html( $wording );
// Add the element for js to update – be sure to include the product ID as shown
$countdown_html .= ‘ ‘;
// Add the countdown text
$countdown_html .= esc_html( $countdown );
// Close the countdown element
$countdown_html .=  »;

return $countdown_html;

add_filter( ‘dispatch_countdown_content’, ‘your_theme_dispatch_countdown_content’, 10, 4 );`


22 novembre 2020
I was a bit doubtful in installing this plugin given it hasn’t got any reviews or many installations, but I was wrong. I needed something a lightweight way to offer a dispatch message on my product pages and after testing it locally with no issues, I added it to my site and so far it has worked as expected. The code supplied to move the message doesn’t seem to work, but I am happy having it where it is.
Lire l’avis

Contributeurs/contributrices & développeurs/développeuses

« Dispatch Countdown » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.


Traduisez « Dispatch Countdown » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.



  • Update docs
  • Add POT file for translations
  • Adds filters to main output


  • Allow dispatch countdown hook to be overridden
  • Update documentation with how to move


  • Remove some dist files


  • No changes – deployment tests only


  • No changes – deployment tests only


  • Added icons
  • Added screenshots


  • Updated readme.txt to adhere to WordPress standards


  • Initial release.