add_action reference a class
No, you cannot ‘initialise’ or instantiate the class through a hook, not directly. Some additional code is always required ( and it is not a desirable thing to be able to do that, as you’re opening a can of worms for yourself. Here is a better way of doing it: class MyClass { function __construct() … Read more