44 * Description: Configure your "Reply-To:" for WP_Mail with validation and admin settings.
55 * Requires at least: 4.1
66 * Requires PHP: 5.6
7- * Version: 1.0.1
7+ * Version: 1.0.2
88 * Author: Javier Casares
99 * Author URI: https://www.javiercasares.com/
1010 * License: GPL-2.0-or-later
1111 * License URI: https://spdx.org/licenses/GPL-2.0-or-later.html
12- * Text Domain: wp-mail- replyto
12+ * Text Domain: replyto
1313 * Domain Path: /languages
1414 *
15- * @package wp-mail- replyto
15+ * @package replyto
1616 *
1717 * @version 1.0.0
1818 */
@@ -33,7 +33,7 @@ function wp_mail_replyto( $args ) {
3333 if ( ! empty ( $ reply_to_email ) ) {
3434 $ new_reply_to = sprintf (
3535 /* translators: %s: email address */
36- __ ( 'Reply-To: <%s> ' , 'wp-mail- replyto ' ),
36+ __ ( 'Reply-To: <%s> ' , 'replyto ' ),
3737 sanitize_email ( $ reply_to_email )
3838 );
3939 }
@@ -87,10 +87,10 @@ function ( $header ) {
8787 */
8888function wp_mail_replyto_add_settings_page () {
8989 add_options_page (
90- esc_html__ ( 'WP Mail Reply-To Settings ' , 'wp-mail- replyto ' ),
91- esc_html__ ( 'Reply-To ' , 'wp-mail- replyto ' ),
90+ esc_html__ ( 'WP Mail Reply-To Settings ' , 'replyto ' ),
91+ esc_html__ ( 'Reply-To ' , 'replyto ' ),
9292 'manage_options ' ,
93- 'wp-mail- replyto ' ,
93+ 'replyto ' ,
9494 'wp_mail_replyto_render_settings_page '
9595 );
9696}
@@ -112,16 +112,16 @@ function wp_mail_replyto_register_settings() {
112112
113113 add_settings_section (
114114 'wp_mail_replyto_main_section ' ,
115- esc_html__ ( 'Reply-To Configuration ' , 'wp-mail- replyto ' ),
115+ esc_html__ ( 'Reply-To Configuration ' , 'replyto ' ),
116116 'wp_mail_replyto_main_section_callback ' ,
117- 'wp-mail- replyto '
117+ 'replyto '
118118 );
119119
120120 add_settings_field (
121121 'wp_mail_replyto_email_field ' ,
122- esc_html__ ( 'Reply-To Email Address ' , 'wp-mail- replyto ' ),
122+ esc_html__ ( 'Reply-To Email Address ' , 'replyto ' ),
123123 'wp_mail_replyto_email_field_callback ' ,
124- 'wp-mail- replyto ' ,
124+ 'replyto ' ,
125125 'wp_mail_replyto_main_section '
126126 );
127127}
@@ -131,7 +131,7 @@ function wp_mail_replyto_register_settings() {
131131 * Callback for the settings section description.
132132 */
133133function wp_mail_replyto_main_section_callback () {
134- echo '<p> ' . esc_html__ ( 'Set the email address to be used in the "Reply-To" header of outgoing emails. ' , 'wp-mail- replyto ' ) . '</p> ' ;
134+ echo '<p> ' . esc_html__ ( 'Set the email address to be used in the "Reply-To" header of outgoing emails. ' , 'replyto ' ) . '</p> ' ;
135135}
136136
137137/**
@@ -140,7 +140,7 @@ function wp_mail_replyto_main_section_callback() {
140140function wp_mail_replyto_email_field_callback () {
141141 $ email = get_option ( 'wp_mail_replyto_email ' , '' );
142142 echo '<input type="email" id="wp_mail_replyto_email" name="wp_mail_replyto_email" value=" ' . esc_attr ( $ email ) . '" size="50" /> ' ;
143- echo '<p class="description"> ' . esc_html__ ( 'Enter the email address to be used as "Reply-To". ' , 'wp-mail- replyto ' ) . '</p> ' ;
143+ echo '<p class="description"> ' . esc_html__ ( 'Enter the email address to be used as "Reply-To". ' , 'replyto ' ) . '</p> ' ;
144144}
145145
146146/**
@@ -159,8 +159,8 @@ function wp_mail_replyto_render_settings_page() {
159159 <?php
160160 wp_nonce_field ( 'update-options ' );
161161 settings_fields ( 'wp_mail_replyto_settings_group ' );
162- do_settings_sections ( 'wp-mail- replyto ' );
163- submit_button ( esc_html__ ( 'Save Settings ' , 'wp-mail- replyto ' ) );
162+ do_settings_sections ( 'replyto ' );
163+ submit_button ( esc_html__ ( 'Save Settings ' , 'replyto ' ) );
164164 ?>
165165 </form>
166166 </div>
@@ -171,6 +171,6 @@ function wp_mail_replyto_render_settings_page() {
171171 * Load plugin textdomain for translations.
172172 */
173173function wp_mail_replyto_load_textdomain () {
174- load_plugin_textdomain ( 'wp-mail- replyto ' , false , basename ( __DIR__ ) . '/languages ' );
174+ load_plugin_textdomain ( 'replyto ' , false , basename ( __DIR__ ) . '/languages ' );
175175}
176176add_action ( 'plugins_loaded ' , 'wp_mail_replyto_load_textdomain ' );
0 commit comments