Quantcast
Channel: activation – WordPress.org Forums
Viewing all articles
Browse latest Browse all 914

The register activation hook fails to initiate

$
0
0

Hi

First-time poster here. We received a support message from a client stating that they were having a problem finding a custom plugin table in their DB. The table is created during activation using register_activation_hook in a required PHP file. We’ve had no issues in the past. When troubleshooting I placed the hook in the root PHP file and it successfully created the tables in the DB. Is this normal? Should all register_activation_hooks only reside on the root PHP file?

Thank you
Michael


Viewing all articles
Browse latest Browse all 914

Trending Articles