@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.
@rogercoathup Many thanks, i’ll look into those!
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 ). 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.
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…
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…