1, 'email_addrs' => get_option('admin_email'), // Mail User - Default mail format (html or plain text) 'cc_admins' => 1, // Whether to CC all administrators when errors are registered. ); return array( 'db-version' => '0.1', 'ze_email_alerts' => $email_alerts, 'ze_err_log' => 1, 'ze_bar_enable' => 1 ); } /** * Returns settings * * @param array $db, retrieve settings from the database if true * @return array */ public static function get_settings($db=false) { if (!$db && isset(self::$ze_setting)) { return self::$ze_setting; } $settings = shortcode_atts( self::$default_settings, get_option('ze_setting', array()) ); return $settings; } public function ze_section_header() { echo '
',__('Note: Parse Errors are not subject to custom PHP error handleling.','0e'),'
'; } /** * Error bar Settings * * outputs error notice bar options fields * uses @ze_validate_settings to sanitize the fields * * @param array $input */ public function ze_bar_enable_callback() { $val = self::$ze_setting['ze_bar_enable']; ?>
Up to 10 latest unique ajax errors will be saved
Email address to send Email Error notifications to