public function __construct() { if (!class_exists('ReduxFramework')) { return; } // This is needed. Bah WordPress bugs. ;) if (true == Redux_Helpers::isChildTheme() || true == Redux_Helpers::isParentTheme()) { $this->initSettings(); } else { add_action('plugins_loaded', array($this, 'initSettings'), 10); } }