Support » Plugin: Widget Logic » Displaying a widget on a specific day/timezone

  • Hello all,

    I’ve been playing around with the code for Widget Logic specifically trying to have a widget appear on Wednesdays only at 7PM CST. I’m not as php savy as I’d like to be so while I know some of the code to do it, I’m not sure how to put it all together.

    Any help would be greatly appreciated!


Viewing 1 replies (of 1 total)
  • This is what I’ve got so far to have it display at 7PM but I believe that this will make the widget go live for anyone looking at it at 7PM locally and not be dependant on what timezone the person is in:

    $hour = date_i18n(‘G’); if ($hour > 18 && $hour < 20) return true;

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying a widget on a specific day/timezone’ is closed to new replies.