/** * Since the filename is randmized this will look up its name from the wp_options table * @since 1.3.0 */ public function get_filename() { if (self::$log_filename == null) { $filename = get_option('appplog_filename', false); if (!$filename) { $filename = uniqid('apppresser-') . '.log'; update_option('appplog_filename', $filename); } self::$log_filename = $filename; } return self::$log_filename; }
/** * Deactivation hook for the plugin. * @since 1.0.0 */ function deactivate() { // AppPresser_Logger may not exist if mulit-site if (class_exists('AppPresser_Logger')) { AppPresser_Logger::remove_usermeta(); } }