Attach a private function at a hook?

No that’s impossible. When WordPress calls a method it has to be public. You could write a public method that is called on the hook which calls a private method inside.
Not sure if that makes sense though …

Leave a Comment