latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Initiating a function when user sub expires

Home Forums Community Forum Initiating a function when user sub expires

This topic contains 2 replies, has 2 voices. Last updated by  Bruce 3 years, 5 months ago.

Topic Author Topic
Posted: Thursday Jul 18th, 2013 at 2:19 am #53594

Love the plugin. Got the developer license and will be using it as my goto plugin. I have added a feature to the member accounts that allows an artist to upload images dependent on their level (15/20/40/etc) which then comes up as listings. However when a user either drops their sub/changes their level down the images will stay there.

Is there some kind of hook/cron process that i can hook into (when the system uses wpcron to deactivate memberships) so i can set the ‘overspill’ to inactive images.

Cheers in advance!

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Wednesday Jul 24th, 2013 at 1:11 am #53930
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

I’m very sorry for the delay in response.

Is there some kind of hook/cron process that i can hook into (when the system uses wpcron to deactivate memberships) so i can set the ‘overspill’ to inactive images.

It depends. How are you saving these images? Why would s2Member demoting a User keep a User’s art from being seen?

Posted: Wednesday Jul 24th, 2013 at 1:13 am #53931
Bruce
Username: Bruce
Staff Member

Sorry, I misunderstood while writing my previous post. The best way to accomplish this would be to either use Cancellation Notifications, or use this hook:

ws_plugin__s2member_during_auto_eot_system_during_before_demote

See: Knowledge Base » Hacking s2Member® Via Hooks/Filters

See Also: Dashboard -› s2Member® -› API / Notifications -› Cancellation Notifications
And Also: Knowledge Base » Building An API Notification Handler

Viewing 2 replies - 1 through 2 (of 2 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.