https://github.com/cityindex/labs.cityindex.com/issues/107
construct class in action plugins_loaded