Can’t find function that does exist
-
I was making a code snippet for testing where I call a Buddyboss function but then I get the response that the function is undefined and doesn’t exist. But it does. And the Buddyboss plugin is of course active.
The weird thing is that when I call this function from a function in a custom plugin and it works fine. And calling a custom plugin function from the code snippet works fine. But if I call the custom plugin function that call the Buddyboss function from the code snippet then the Buddyboss function is undefined in that function as well.
The function I try to call is bp_notifications_add_notification
https://www.buddyboss.com/resources/reference/functions/bp_notifications_add_notification/Why is the Buddyboss function undefined when trying to call it directly or indirectly from a code snippet.
Is there some setting I’m missing or what is it I don’t understand? 🙂
The topic ‘Can’t find function that does exist’ is closed to new replies.