Request for additional options
-
First of all, thanks so much for writing this plugin. It’s almost exactly what I was looking for, but I think there are two small features that would make it even better (and just perfect for my needs). Or maybe these things are already possible, and I’m just not reading the documentation right?
1. I’d like to be able to set my date to Thanksgiving, which is on a different day of the month each year, in most countries. In America, it’s the fourth Thursday in November, so it would be great if I could set up a shortcode like:
[time-restrict-repeat type=”annually” onmonth=”November” ondate=”4thThursday” offmonth=”December” offdate=”01″]
Similarly, I think it would be useful to be able target the last day of the month, which changes monthly.
2. I’m also hoping to be able to add or subtract days from my target dates. Obviously, this doesn’t make sense when using static days of the month – I wouldn’t need to say “5 days before the 15th”, I’d just say “the 10th”. But using the above Thanksgiving setting, for example, I’d like to be able to show a form 2 weeks before Thanksgiving, and hide it again the day before. Something like:
[time-restrict-repeat type=”annually” onmonth=”November” ondate=”4thThursday” onoffset=”-14″ offmonth=”November” offdate=”4thThursday” offoffset=”-2″]
or perhaps even:
[time-restrict-repeat type=”annually” onmonth=”November” ondate=”4thThursday-14″ offmonth=”November” offdate=”4thThursday-2″]
I’m sure the syntax could be a lot more intuitive – “onoffset” and “offoffset” and “4thThursday” are pretty awkward, but those the first things that came to my mind, to illustrate the example.
- The topic ‘Request for additional options’ is closed to new replies.