WordPress register_activation_hook not firing

WordPressThe register_activation_hook() in WordPress looks for the “wp-content/plugins” directory in the plug-in file’s canonical pathname. So, if your files physically live somewhere other than in your WordPress tree, WordPress (PHP) calculates inappropriate paths.

The Solution: Move all your plug-in files into your WordPress tree and the activation hook should start firing.

One thought on “WordPress register_activation_hook not firing

  1. sanjay says:

    hey guys,

    above solution not work please do something for this solution.
    i want to create table when plugin is installed
    please help me.
    thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *