Relative date for content dripping shortcut

Hello there, thank you for helping!

I would like to know if there is any way to turn this shortcode
[s2Drip access=“level1” from_day=“4”]

in something like
[s2Drip access=“level1” from_day="**4 days after the previous content**"]

In other words, what i need in my membership, is to turn this logic:

CONTENT 1 dripped at day 0
CONTENT 2 dripped at day 7
CONTENT 3 dripped at day 14
CONTENT 4 dripped at day 21

into this one:

CONTENT 1 dripped at day 0
CONTENT 2 dripped at +7 days the last content unlocking
CONTENT 3 dripped at +7 days the last content unlocking
CONTENT 4 dripped at +7 days the last content unlocking

This should let me to modify the content releasing date during the subscription. It’s something useful in my specific case.

Is this something achievable in any tricking way?
Many many thanks!

Francesco

Any idea? :frowning:

It’s not possible with the current implementation… What you could do is add your own custom code with that logic, and then populate the shortcode with it.

s2Member logs the times for new access to use with s2Drip, so you could check that information to calculate the new access based on the previous one.

Look at the file: s2member-pro/src/includes/classes/user-drip-access.inc.php

I hope that helps. :slight_smile:

Thnak you very much for your answer. I’m not a dev, is there anyone who can accomplish this task for me? Many thanks

1 Like

This file may be useful too: s2member/src/includes/classes/access-cap-times.inc.php

You could ask @krumch :slight_smile:

1 Like

This hack may help you…