plugin development — cannot redeclare function
-
I’m writing a plugin and running into some issues.
I have an activation function, which sets up a table I’m using; I also have an admin page, under the management category. After activating, which works fine, when I go to the admin page I get:
Fatal error: Cannot redeclare dumb_setup() (previously declared in /path/.../wp-content/plugins/dumb_plugin_test.php:10) in /path/.../wp-content/plugins/dumb_plugin_test.php on line 8
Minimal code that repeats this error is at https://pastie.caboo.se/123913
Thanks….
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘plugin development — cannot redeclare function’ is closed to new replies.