Dripping content on a calendar basis (based on capabilities)

Hello “s2memberers”,

After researching all the way down (forum + internet) I didn’t find a valid response.

I need to start dripping content on a calendar basis (apart from dripping after purchasing).

I’m releasing a course on a specific date (E.g. 18/06/219) but people can subscribe to it during the whole week before (campaign week). This means that some people has to wait until 7 days to start the course while others just 1 day.

Furthermore, I want to release something a soon as they pay but I want all of them to go through the rest of the course at the same pace (start and finish at the same days).

Finally, I’m releasing the same course in the future and I would like that people who has been before keep full access while new customers go through the dripping sequence on the date of the new release.

Note: I have configured the s2member plugin only with level 0 and level 1 and I differentiate users on capabilities bases.

Does anyone know how to achieve it or is willing to help me?

Many thanks!

1 Like

Hi Ray.

That sounds like an interesting setup.

Yes, you can do that, with PHP conditionals. See here: WP Admin > s2Member > API / Scripting > Content Dripping

Instead of using the constants mentioned there, use PHP’s time functions. For example:

<?php if (current_user_can("access_s2member_level1")) && (strtotime('now') > strtotime('2019-06-18')) { ?>
    Drip content to Level 1 members if it's past June 18th, 2019.
<?php }; ?>

I hope that helps. :slight_smile:

Hi Cristian,

Thanks a lot. Looks amazing, however I’m not a programmer and I don’t know to use php to this level.

Is there any interested in developing that?