Inside of the core plugin class, I am inserting a filter or an action hook under the "define_public_hooks".
Then the function called within the public class checks for conditions and needs to call another function from the same class via add_filter or add_action. Unfortunately, all hooks must go through the loader and referencing itself without using the loader doesn't work.
Inside of the core plugin class, I am inserting a filter or an action hook under the "define_public_hooks".
Then the function called within the public class checks for conditions and needs to call another function from the same class via add_filter or add_action. Unfortunately, all hooks must go through the loader and referencing itself without using the loader doesn't work.
Any idea on how I can achieve this?
Thanks a lot for your help in advance!