• Resolved charlyripp

    (@charlyripp)


    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

    (@jhorowitz)

    Hi @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.