hlashbrooke / WordPress-Plugin-Template

A robust code template for creating a standards-compliant WordPress plugin.
https://hughlashbrooke.com/
GNU General Public License v2.0
1.03k stars 329 forks source link

Install function in register_activation_hook #59

Open rafasashi opened 7 years ago

rafasashi commented 7 years ago

According to https://codex.wordpress.org/Function_Reference/register_activation_hook the activation hook requires a static function, if inside of a __construct()

Therefor $this cannot be used inside install to call _log_version_number.

Any suggestion to implement the install function properly?