Title: Can&#8217;t find function that does exist
Last modified: October 12, 2023

---

# Can’t find function that does exist

 *  [hemligg](https://wordpress.org/support/users/hemligg/)
 * (@hemligg)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/cant-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/](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.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [hemligg](https://wordpress.org/support/users/hemligg/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/cant-find-function-that-does-exist/)
 * Status: not a support question