Can I run custom hooks from a plugin?
#4
Unless your variable is in the global scope, you need to pass it by reference, just as Euantor showed you.

Though, slighter different, I will do it like this:
$data = $plugins->run_hooks('exersice_start', $data);
Reply


Messages In This Thread
Can I run custom hooks from a plugin? - by TOA - 2012-10-02, 03:25 PM
RE: Can I run custom hooks from a plugin? - by Omar G. - 2012-10-02, 04:54 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)