get_option( 'admin_email' ), 'autoreply' => 1, 'autoreply_subject' => __( 'We\'ve received your message', 'stackmime-forms' ), /* translators: Default auto-reply. Keep the {placeholders}. */ 'autoreply_body' => __( "Hi {name},\n\nThanks for getting in touch. We've received your message and will get back to you shortly.\n\n{site}", 'stackmime-forms' ), 'help_phone' => '', 'style' => 'clean', 'accent' => '', 'min_seconds' => 3, 'rate_limit' => 5, 'max_links' => 2, 'retention_days' => 0, 'delete_on_uninstall' => 0, ); } /** * Current settings. */ function stackmime_forms_settings() { $saved = get_option( 'stackmime_forms_settings', array() ); return wp_parse_args( is_array( $saved ) ? $saved : array(), stackmime_forms_defaults() ); } /** * Message shown when a submission can't be accepted. */ function stackmime_forms_fail_message() { $phone = stackmime_forms_settings()['help_phone']; return $phone /* translators: %s: phone number. */ ? sprintf( __( 'Sorry, something went wrong sending your message. Please call us on %s.', 'stackmime-forms' ), $phone ) : __( 'Sorry, something went wrong sending your message. Please try again in a minute.', 'stackmime-forms' ); }