I'm writing my first object-oriented plugin, and every time I try to activate it, WordPress shows me a PHP error that says Cannot redeclare class. What's going on?
I'm writing my first object-oriented plugin, and every time I try to activate it, WordPress shows me a PHP error that says Cannot redeclare class. What's going on?
Got it sorted.
In case anyone has the same problem in the future, using $this and $self interchangeably is bad, mmmkay.
This topic has been closed to new replies.