New answers tagged wp-localize-script
You should use wp_localize_script() after enqueuing your JS file that calls the countdown method. I'm assuming you stored the date in an option called date_name like January 1, 2015 13:30:00. In your case, you are storing it as an array with month, day, year, and time in the correct format, so you should convert it to the January 1, 2015 13:30:00 format. ...
Providing everything else is working - in order to use an ID to target the slider it must be unique. Therefore all the slider containers cannot have an ID of #owl-example - it needs to be #owl-example-1, #owl-example-2 etc. To avoid this completely you might want to try using the .owl-carousel class instead.
Looks as though Tiny MCE is not enqueued. Looks like it is loaded through the _WP_Editors class in class-wp-editor.php. There is a action hook in there called before_wp_tiny_mce where you can output a script with some localised variables... This is what I am going to do.
Top 50 recent answers are included