Disable Theme Activation if WP Version is lower than 3.5
-
Note: Im a starter in wordpress development but have some PHP knowledge.
Hi there,
Currently i’m building a wp theme from scratch.
I used some functions that only works after version 3.5.I could give the user a message in the dashboard that the current theme is not working on the WP version the user used. But want to do it in a different way if possible.
The question:
Is it better to disable the activation if the version is lower than 3.5, or just give a error message when the theme is activated on an incompatible WP version?If disable activation is an option, where do i need to start to make such a function like:
When a user activates it.
The activation will fail.
Give an error message and reactivate the last activated theme..*going back to Google and search further 😉
Thanks in advance.
- The topic ‘Disable Theme Activation if WP Version is lower than 3.5’ is closed to new replies.