Title: Plugin not initializing
Last modified: August 21, 2016

---

# Plugin not initializing

 *  [rhj4](https://wordpress.org/support/users/rhj4/)
 * (@rhj4)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/plugin-not-initializing/)
 * 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.

## Tags

 * [initialization](https://wordpress.org/support/topic-tag/initialization/)

 * 0 replies
 * 1 participant
 * Last reply from: [rhj4](https://wordpress.org/support/users/rhj4/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/plugin-not-initializing/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
