function __construct() { self::$path = plugin_dir_path(__FILE__); self::$file = __FILE__; $this->doing_ajax = defined('DOING_AJAX') && DOING_AJAX; $this->add_hooks(); parent::__construct(); }