Skip to:
Content
Pages
Categories
Search
Top
Bottom

Birthday Notifications

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

  • Henry Wright
    Moderator

    @henrywright

    The page you linked to describes how to add a web notification. The example on that page hooks to the bp_activity_sent_mention_email action which means every time bp_activity_sent_mention_email is executed, a web notification will be sent. In your case, you’d still use bp_notifications_add_notification() to send the notification but you will want to send a notification to a particular member only if a friend of that member has a birthday.

    The wp_schedule_event() function might be helpful to you: https://codex.wordpress.org/Function_Reference/wp_schedule_event


    lucaram
    Participant

    @lucaram

    Thanks Henry,

    Unfortunately I struggle to understand how to produce the code, I’m not a code expert like you guys.

    Here is what I have and how I would like to implement it for my friend’s birthday:
    bIRTHDAY nOTIFICATIONS

    I have found this that mentioned the “bp_notifications_add_notification()” function:

    BuddyPress: Adding Custom Notifications

    That is for notifications when someone comments on their blog post, but it is far too complex for me to modify for birthdays I’m afraid 🙁

    Any chance somebody could share the code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar