Skip to content

PHP Function with Shortcode for Woocommerce Shipping Countdown Timer

Notifications You must be signed in to change notification settings

MrEbabi/Woocommerce-Shipping-Countdown-Timer

Repository files navigation

Woocommerce-Shipping-Countdown-Timer

  • Code includes 3 parts: CSS, HTML and JS.

  • Usage:

  1. Add the entire function in "shipping-countdown-timer.php" file to "wp-content -> themes -> functions.php"
  2. Add [shipping-countdown-timer] shortcode to any page or post that you want to show

Shortcode attributes: Hour and Minute
Shortcode with attributes usage: [shipping-countdown-timer hour=16 minute=00]


To see the final version as a function, check the "shipping-countdown-timer.php code and follow the shortcode usage instructions to show countdown timer in any page or post.

Comments inside the code will help you to understand better.


Release: Source code is updated as a single function with a shortcode to easier usage.

To-Do: Finish beta, globalize and publish as plugin