Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_notifications_add_notification

  • @auav

    Participant

    I am able to add buddypress notification using below – How do I set custom message in ‘component_action’ ? I want the notification say something like new group group activity and the link should go that activity –

    BTW, where do I look to find out all component actions that are available to use here?

    Thank you

    ‘ bp_notifications_add_notification( array(
    ‘user_id’ => (int) $to,
    ‘item_id’ => (int) $group_id,
    ‘secondary_item_id’ => $activity->user_id,
    ‘component_name’ => buddypress()->groups->id,
    ‘component_action’ => ”,
    ‘date_notified’ => bp_core_current_time(),
    ‘is_new’ => 1,
    ) );
    `

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bp_notifications_add_notification’ is closed to new replies.
Skip to toolbar