BuddyDev

Search

[Resolved] Auto delete "Users" buddypress notifications after 60 days


  • Participant
    Level: Enlightened
    Posts: 53
    Tosin on #20788

    Hello

    How can I auto delete users notification automatically after a period of 60 days maybe by using wordpress cron job.

    Thanks


  • Keymaster
    (BuddyDev Team)
    Posts: 10210
    Brajesh Singh on #20795

    Hi Tosin,
    Thank you for posting. It seems like a good topic for others too.

    I will share the code by tomorrow. Need to find some time to write. It’s easy.

    Regards
    Brajesh


  • Participant
    Level: Enlightened
    Posts: 53
    Tosin on #20801

    OK thanks so much i’m really grateful


  • Participant
    Level: Enlightened
    Posts: 53
    Tosin on #20830

    Any feedback sir thanks


  • Keymaster
    (BuddyDev Team)
    Posts: 10210
    Brajesh Singh on #20833

    Hi Tosin,
    Thank you for the patience.
    I am writing a blog post and will be linking today.

    Regards
    Brajesh


  • Keymaster
    (BuddyDev Team)
    Posts: 10210
    Brajesh Singh on #20869

    Hi Tosin,
    Thank you for the patience.

    The code is available as a plugin now.

    Please see this post for more details.

    https://buddydev.com/introducing-buddypress-auto-clean-notifications/

    Hope this helps.

    Regards
    Brajesh


  • Participant
    Level: Enlightened
    Posts: 53
    Tosin on #20871

    Thank you very much I just downloaded the plugin now


  • Keymaster
    (BuddyDev Team)
    Posts: 10210
    Brajesh Singh on #20872

    You are welcome.
    After activating, please check after 1 hour as the first run is scheduled after an hour.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved
Subscribe