/** * Constructor function. * @param string $file __FILE__ of the main plugin * @access private * @since 1.0.0 */ private function __construct($file) { self::$token = 'ppb-photo-addon'; self::$file = $file; self::$url = plugin_dir_url($file); self::$path = plugin_dir_path($file); self::$version = '1.0.1'; add_action('init', array($this, 'init')); }