Changeset 2896223
- Timestamp:
- 04/09/2023 01:29:39 PM (16 months ago)
- Location:
- wp-default-sender-email-by-it-pixelz/trunk
- Files:
-
- 201 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-default-sender-email-by-it-pixelz/trunk/admin/class-wp-default-sender-email-by-it-pixelz-admin.php
r2144508 r2896223 110 110 } 111 111 112 113 112 /** 114 113 * add admin menu … … 133 132 */ 134 133 function settings_page() { 135 136 134 ?> 137 138 135 <div class="wrap" id="wdsei_settings_wrapper"> 139 136 <h1><?php _e( 'WP Default Sender Email Address Settings', 'wp-default-sender-email-by-it-pixelz' ) ?></h1> … … 149 146 <?php _e( 'If you are going to use email account other than the domain on your hosting, then you may have to confirm if your current web hosting is offering so.', 'wp-default-sender-email-by-it-pixelz' ); ?> 150 147 </p> 151 152 148 </div> 153 154 149 <?php 155 150 } … … 166 161 [ $this, 'sanitize_text_fields' ] 167 162 ); 168 169 163 170 164 add_settings_section( … … 182 176 'wdsei_settings_section' 183 177 ); 178 184 179 add_settings_field( 185 180 'sender_mail', … … 189 184 'wdsei_settings_section' 190 185 ); 191 192 193 186 } 194 187 … … 200 193 */ 201 194 public function sender_name_callback( $args ) { 202 203 195 $val = ( isset( $this->options_settings['sender_name'] ) ) ? $this->options_settings['sender_name'] : ''; 204 196 205 197 echo '<input name="' . $this->options_settings_key . '[sender_name]" id="sender_name" type="text" value="' . esc_attr( $val ) . '" class="regular-text" /> 206 198 <p>' . __( 'Sender email name, From name of the email address', 'wp-default-sender-email-by-it-pixelz' ) . '</p>'; 207 208 199 } 209 200 … … 219 210 echo '<input name="' . $this->options_settings_key . '[sender_mail]" id="sender_mail" type="email" value="' . esc_attr( $val ) . '" class="regular-text" /> 220 211 <p>' . __( 'Sender email address, From email ID', 'wp-default-sender-email-by-it-pixelz' ) . '</p>'; 221 222 212 } 223 213 … … 239 229 */ 240 230 public function sanitize_text_fields( $fields ) { 241 242 231 $valid_fields = []; 243 232 … … 250 239 return apply_filters( 'validate_options', $valid_fields, $fields ); 251 240 } 252 253 254 241 } -
wp-default-sender-email-by-it-pixelz/trunk/includes/class-wp-default-sender-email-by-it-pixelz-activator.php
r2144508 r2896223 19 19 */ 20 20 public static function activate() { 21 22 21 add_option( 'wdsei_activation_redirect', true ); 23 24 22 25 23 $current_user = wp_get_current_user(); … … 44 42 wp_cache_delete( 'alloptions', 'options' ); 45 43 } 46 47 48 44 } 49 50 45 } -
wp-default-sender-email-by-it-pixelz/trunk/includes/class-wp-default-sender-email-by-it-pixelz.php
r2144508 r2896223 76 76 $this->define_admin_hooks(); 77 77 $this->define_common_hooks(); 78 79 78 } 80 79 … … 121 120 122 121 $this->loader = new Wp_Default_Sender_Email_By_It_Pixelz_Loader(); 123 124 122 } 125 123 … … 134 132 */ 135 133 private function set_locale() { 136 137 134 $plugin_i18n = new Wp_Default_Sender_Email_By_It_Pixelz_i18n(); 138 139 135 $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); 140 141 136 } 142 137 … … 149 144 */ 150 145 private function define_admin_hooks() { 151 152 146 $plugin_admin = new Wp_Default_Sender_Email_By_It_Pixelz_Admin( $this->get_plugin_name(), $this->get_version() ); 153 147 154 148 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); 155 // $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );156 149 157 150 // admin menu … … 159 152 160 153 // register settings fields 161 $this->loader->add_action( 'admin_init', $plugin_admin, 'wp_setting_init' );162 $this->loader->add_action( 'admin_init', $plugin_admin, 'admin_redirect' );154 $this->loader->add_action( 'admin_init', $plugin_admin, 'wp_setting_init' ); 155 $this->loader->add_action( 'admin_init', $plugin_admin, 'admin_redirect' ); 163 156 164 157 $this->loader->add_filter( 'plugin_action_links_' . WP_DEFAULT_SENDER_EMAIL_BY_IT_PIXELZ_BASE_FILE, $plugin_admin, 'add_settings_links' ); 165 166 158 } 167 159 -
wp-default-sender-email-by-it-pixelz/trunk/readme.txt
r2144629 r2896223 4 4 Tags: email, mail, default mail, email from, sender email, default sender email, default sender name, wp default sender email, outgoing mail 5 5 Requires at least: 3.0.1 6 Tested up to: 5.2.27 Stable tag: 1.26 Tested up to: .2 7 Stable tag: 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Get rid of default email from like this wordpress@domain.com, use your own brand name! 11 Elevate your email image: replace default sender email (e.g. wordpress@domain.com) with brand name. Customize sender & from email to avoid spam. 12 12 13 13 == Description == 14 14 15 Change your WordPress default sender email ID to your own to look like more professional. 16 By default it is wordpress@domain.com but right now using this plugin you may change the name of the sender and the from email address too. 17 The main benefit you will get that, sometimes your default WordPress email address looks like spam to gmail, hotmail, yahoo mail or other email clients and they push your email to junk or spam folder. By using this plugin you can avoid that situation easily and you can use your brand name in from name and from email address too. 18 15 Is your WordPress default sender email not cutting it anymore? You're not alone. Many users find that the default email address (wordpress@domain.com) can come across as unprofessional and even spammy. Fortunately, there's a solution! By using a plugin, you can change the name of the sender and from email address to something more personalized and brand-friendly. This small but impactful change can make a big difference in how your emails are perceived by recipients, and can help prevent them from ending up in the dreaded spam folder. So if you're ready to upgrade your WordPress default sender email, consider giving this plugin a try! 19 16 [youtube https://www.youtube.com/watch?v=Oqs3xgwB6oY] 20 17 … … 25 22 2. Activate the plugin through the 'Plugins' menu in WordPress 26 23 3. Go to settings of the plugin and edit options and save it. (Settings -> WP Default Mail) 27 4. That s it!!! Enjoy :)24 4. Thats it!!! Enjoy :) 28 25 29 26 30 27 == Screenshots == 31 28 32 1. Go to the Settings link from left side 29 1. Go to the Settings link from left sidebar in wp-admin and then go to the link "WP Default Mail" and then change the settings as per your requirement. 33 30 2. Sender name and email id 34 31 3. Sender name and email id in email client … … 37 34 == Changelog == 38 35 36 37 38 39 40 39 41 = 2.0 = 40 42 -
wp-default-sender-email-by-it-pixelz/trunk/wp-default-sender-email-itpixelz.php
r2144582 r2896223 11 11 * Plugin Name: Wp Default Sender Email by IT Pixelz 12 12 * Plugin URI: https://wordpress.org/plugins/wp-default-sender-email-by-it-pixelz/ 13 * Description: Get rid of default email from like this wordpress@domain.com, use your own brand name!14 * Version: 2. 0.113 * Description: 14 * Version: 2. 15 15 * Author: Umar Draz 16 16 * Author URI: https://profiles.wordpress.org/itpixelz/ … … 26 26 } 27 27 28 define( 'WP_DEFAULT_SENDER_EMAIL_BY_IT_PIXELZ_VERSION', '2. 0.0' );28 define( 'WP_DEFAULT_SENDER_EMAIL_BY_IT_PIXELZ_VERSION', '2..0' ); 29 29 define( 'WP_DEFAULT_SENDER_EMAIL_BY_IT_PIXELZ_OPTIONS_KEY', 'wdsei_itpixelz_options' ); 30 30 define( 'WP_DEFAULT_SENDER_EMAIL_BY_IT_PIXELZ_BASE_FILE', plugin_basename( __FILE__ ) ); 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 31 69 32 70 /** … … 40 78 } 41 79 42 /**43 * The code that runs during plugin deactivation.44 * This action is documented in45 * includes/class-wp-default-sender-email-by-it-pixelz-deactivator.php46 */47 function deactivate_wp_default_sender_email_by_it_pixelz() {48 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wp-default-sender-email-by-it-pixelz-deactivator.php';49 Wp_Default_Sender_Email_By_It_Pixelz_Deactivator::deactivate();50 }51 52 80 register_activation_hook( __FILE__, 'activate_wp_default_sender_email_by_it_pixelz' ); 53 register_deactivation_hook( __FILE__, 'deactivate_wp_default_sender_email_by_it_pixelz' );54 81 55 82 /** … … 65 92 */ 66 93 function run_wp_default_sender_email_by_it_pixelz() { 67 68 94 $plugin = new Wp_Default_Sender_Email_By_It_Pixelz(); 69 95 $plugin->run(); 70 71 96 } 72 97
Note: See TracChangeset
for help on using the changeset viewer.