Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hooking into Notifications


  • ElbowRobo
    Participant

    @elbowrobo

    Basically,

    does anyone have any help about hooking into the notification api?

    I know I should be using this function `bp_core_add_notification`. But how does that work? I can not find any documentation anywhere!

    Thanks, Eliott

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

  • Roger Coathup
    Participant

    @rogercoathup

    @Eliott — I don’t know of any documentation on the function, you are best looking through the code for the arguments it takes. API documentation is very thin on the ground.

    If you take a look at the skeleton component ( https://wordpress.org/extend/plugins/buddypress-skeleton-component/ ), it gives you a model for registering your own components and actions, which you can then use in conjunction with the notifications system (e.g. as parameters to bp_core_add_notification() )

    Similarly, have a search through the codebase to see how the default BP components call the function.


    ElbowRobo
    Participant

    @elbowrobo

    @rogercoathup Many thanks, i’ll look into those! :D


    ElbowRobo
    Participant

    @elbowrobo

    Damn all of that is pretty complicated. Somebody needs to make this easier. All I want is to add a notification with a link (that makes the notification go away :D). No components, admin, functions, templates or anything else. Well BP – this is the first time i’ve thought of you as being a challenge to work with.


    Tosh
    Participant

    @xberserker

    I’m wondering how to do this as well. Found this, which is where the functions are first created. But I’m still at a loss how to create a notification.

    I’ve searched around a LOT for this solution. Seems like most people don’t know or the ones that do don’t want to share, lol.

    @ElbowRobo @Tosh I’m with you guys – looking to do the same thing…


    oriadam
    Participant

    @oriadam

    Me too.
    Found this which promises a lot but I couldn’t get it.
    It seemed that he edited a code BP function, which was re/moved in last update…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hooking into Notifications’ is closed to new replies.
Skip to toolbar