• Code in plugin A calls a method in plugin B.

    B is implemented as a class with a few wrapper functions. The method called by A does a new [class name]() and then invokes a method within the class.

    The new [class name] code fires the constructor which contains:

    add_action(‘init’, array($this, ‘init_my_code’), but ‘init_my_code’ never gets called. The init code loads JavaScript code, but that code is not getting loaded… hence a problem.

    Is the problem related to hooking to ‘init’ or am I missing something fundamental? Where should I be hooking to?

  • The topic ‘Plugin not initializing’ is closed to new replies.