Title: Call to Plugin functions
Last modified: September 6, 2018

---

# Call to Plugin functions

 *  Resolved [charlyripp](https://wordpress.org/support/users/charlyripp/)
 * (@charlyripp)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/call-to-plugin-functions/)
 * Some logic to be used is more complex and requires a custom function to call 
   to.
 * Placing functions in functions.php or utilizing something like My Custom Functions
   is great and all, but I’m looking to keep all customizations centralized in a
   plugin I can version and migrate as needed.
 * Is there any way to call to functions defined in a plugin?
    I’ve tried accessing
   my global variable (instance of the plugin class – $myplugin->my_func()) and 
   coding functions directly in the plugin’s main file. Seems as none are visible
   at the time/location the visibility eval (line 318) is done.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jonathan Horowitz](https://wordpress.org/support/users/jhorowitz/)
 * (@jhorowitz)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/call-to-plugin-functions/#post-10661627)
 * Hi [@charlyripp](https://wordpress.org/support/users/charlyripp/)!
 * At first glance, I would define a filter using `add_filter` and within it return
   the output of your function. Then in CVDB you can call `apply_filters` to access
   it 🙂

Viewing 1 replies (of 1 total)

The topic ‘Call to Plugin functions’ is closed to new replies.

 * ![](https://ps.w.org/content-visibility-for-divi-builder/assets/icon-256x256.
   png?rev=1359961)
 * [Content Visibility for Divi Builder](https://wordpress.org/plugins/content-visibility-for-divi-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-visibility-for-divi-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jonathan Horowitz](https://wordpress.org/support/users/jhorowitz/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/call-to-plugin-functions/#post-10661627)
 * Status: resolved