Title: Dispatch Countdown
Author: mrdl
Published: <strong>Ọ̀pẹ  10, 2019</strong>
Last modified: Ọ̀pẹ  17, 2019

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/dispatch-countdown/assets/banner-772x250.png?rev=2209269)

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://ps.w.org/dispatch-countdown/assets/icon-256x256.png?rev=2209269)

# Dispatch Countdown

 Láti ọwọ́ [mrdl](https://profiles.wordpress.org/mardellme/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/dispatch-countdown.1.0.7.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/dispatch-countdown/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/dispatch-countdown/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/dispatch-countdown/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/dispatch-countdown/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/dispatch-countdown/)

## Àpèjúwe

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”.

## Àwọn àwòrán ìbòjú

[⌊Frontend view⌉⌊Frontend view⌉[

Frontend view

[⌊Backend view⌉⌊Backend view⌉[

Backend view

## Ìgbéwọlẹ̀

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

## FAQ

  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' ) ) {
            return;
        }

        // 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 Ìtumọ̀ Yorùbá: – 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 );`

## Àwọn àgbéyẹ̀wò

![](https://secure.gravatar.com/avatar/3fc0a7b6069720689a32c5f2476bbb8089902b4422e9d15545c0ad4513e365ca?
s=60&d=retro&r=g)

### 󠀁[Simple and Effective](https://wordpress.org/support/topic/simple-and-effective-1219/)󠁿

 [kyarauk](https://profiles.wordpress.org/kyarauk/) Bélú 22, 2020

I was a bit doubtful in installing this plugin given it hasnÌtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’t seem to work, but I am 
happy having it where it is.

 [ Ka gbogbo àgbéyẹ̀wò 1 ](https://wordpress.org/support/plugin/dispatch-countdown/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“Dispatch Countdown” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe
ìkópa sí plugin yìí.

Àwọn Olùkópa

 *   [ mrdl ](https://profiles.wordpress.org/mardellme/)

[Túmọ̀ “Dispatch Countdown” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/dispatch-countdown)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/dispatch-countdown/), 
ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/dispatch-countdown/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/dispatch-countdown/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/dispatch-countdown/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.0.7

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

#### 1.0.6

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

#### 1.0.5

 * Remove some dist files

#### 1.0.4

 * No changes Ìtumọ̀ Yorùbá: – deployment tests only

#### 1.0.3

 * No changes Ìtumọ̀ Yorùbá: – deployment tests only

#### 1.0.2

 * Added icons
 * Added screenshots

#### 1.0.1

 * Updated readme.txt to adhere to WordPress standards

#### 1.0.0

 * Initial release.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.0.7**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 7 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **10+**
 *  Ẹ̀yà WordPress ** 4.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **5.3.22**
 *  Ẹ̀yà PHP ** 5.6 tàbí ju bẹ́ẹ̀ lọ **
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/dispatch-countdown/)
 * Àwọn àmì
 * [countdown](https://yor.wordpress.org/plugins/tags/countdown/)[dispatch](https://yor.wordpress.org/plugins/tags/dispatch/)
   [woocommerce](https://yor.wordpress.org/plugins/tags/woocommerce/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/dispatch-countdown/advanced/)

## Àwọn ìbò

 5 lára àwọn ìràwọ̀ 5.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/dispatch-countdown/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/dispatch-countdown/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/dispatch-countdown/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/dispatch-countdown/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/dispatch-countdown/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dispatch-countdown/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dispatch-countdown/reviews/)

## Àwọn Olùkópa

 *   [ mrdl ](https://profiles.wordpress.org/mardellme/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/dispatch-countdown/)