Plugin Directory

Changeset 2896223

Timestamp:
04/09/2023 01:29:39 PM (16 months ago)
Author:
itpixelz
Message:

Bugs fixes, add optin option

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  
    110110    }
    111111
    112 
    113112    /**
    114113     * add admin menu
     
    133132     */
    134133    function settings_page() {
    135 
    136134        ?>
    137 
    138135        <div class="wrap" id="wdsei_settings_wrapper">
    139136            <h1><?php _e( 'WP Default Sender Email Address Settings', 'wp-default-sender-email-by-it-pixelz' ) ?></h1>
     
    149146                <?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' ); ?>
    150147            </p>
    151 
    152148        </div>
    153 
    154149        <?php
    155150    }
     
    166161            [ $this, 'sanitize_text_fields' ]
    167162        );
    168 
    169163
    170164        add_settings_section(
     
    182176            'wdsei_settings_section'
    183177        );
     178
    184179        add_settings_field(
    185180            'sender_mail',
     
    189184            'wdsei_settings_section'
    190185        );
    191 
    192 
    193186    }
    194187
     
    200193     */
    201194    public function sender_name_callback( $args ) {
    202 
    203195        $val = ( isset( $this->options_settings['sender_name'] ) ) ? $this->options_settings['sender_name'] : '';
    204196
    205197        echo '<input name="' . $this->options_settings_key . '[sender_name]" id="sender_name" type="text" value="' . esc_attr( $val ) . '" class="regular-text" />
    206198              <p>' . __( 'Sender email name, From name of the email address', 'wp-default-sender-email-by-it-pixelz' ) . '</p>';
    207 
    208199    }
    209200
     
    219210        echo '<input name="' . $this->options_settings_key . '[sender_mail]" id="sender_mail" type="email" value="' . esc_attr( $val ) . '" class="regular-text" />
    220211              <p>' . __( 'Sender email address, From email ID', 'wp-default-sender-email-by-it-pixelz' ) . '</p>';
    221 
    222212    }
    223213
     
    239229     */
    240230    public function sanitize_text_fields( $fields ) {
    241 
    242231        $valid_fields = [];
    243232
     
    250239        return apply_filters( 'validate_options', $valid_fields, $fields );
    251240    }
    252 
    253 
    254241}
  • wp-default-sender-email-by-it-pixelz/trunk/includes/class-wp-default-sender-email-by-it-pixelz-activator.php

    r2144508 r2896223  
    1919     */
    2020    public static function activate() {
    21 
    2221        add_option( 'wdsei_activation_redirect', true );
    23 
    2422
    2523        $current_user = wp_get_current_user();
     
    4442            wp_cache_delete( 'alloptions', 'options' );
    4543        }
    46 
    47 
    4844    }
    49 
    5045}
  • wp-default-sender-email-by-it-pixelz/trunk/includes/class-wp-default-sender-email-by-it-pixelz.php

    r2144508 r2896223  
    7676        $this->define_admin_hooks();
    7777        $this->define_common_hooks();
    78 
    7978    }
    8079
     
    121120
    122121        $this->loader = new Wp_Default_Sender_Email_By_It_Pixelz_Loader();
    123 
    124122    }
    125123
     
    134132     */
    135133    private function set_locale() {
    136 
    137134        $plugin_i18n = new Wp_Default_Sender_Email_By_It_Pixelz_i18n();
    138 
    139135        $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
    140 
    141136    }
    142137
     
    149144     */
    150145    private function define_admin_hooks() {
    151 
    152146        $plugin_admin = new Wp_Default_Sender_Email_By_It_Pixelz_Admin( $this->get_plugin_name(), $this->get_version() );
    153147
    154148        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
    155 //      $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
    156149
    157150        // admin menu
     
    159152
    160153        // 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' );
    163156
    164157        $this->loader->add_filter( 'plugin_action_links_' . WP_DEFAULT_SENDER_EMAIL_BY_IT_PIXELZ_BASE_FILE, $plugin_admin, 'add_settings_links' );
    165 
    166158    }
    167159
  • wp-default-sender-email-by-it-pixelz/trunk/readme.txt

    r2144629 r2896223  
    44Tags: email, mail, default mail, email from, sender email, default sender email, default sender name, wp default sender email, outgoing mail
    55Requires at least: 3.0.1
    6 Tested up to: 5.2.2
    7 Stable tag: 1.2
     6Tested up to: .2
     7Stable tag:
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 Get rid of default email from like this wordpress@domain.com, use your own brand name!
     11Elevate your email image: replace default sender email (e.g. wordpress@domain.com) with brand name. Customize sender & from email to avoid spam.
    1212
    1313== Description ==
    1414
    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 
     15Is 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!
    1916[youtube https://www.youtube.com/watch?v=Oqs3xgwB6oY]
    2017
     
    25222. Activate the plugin through the 'Plugins' menu in WordPress
    26233. Go to settings of the plugin and edit options and save it. (Settings -> WP Default Mail)
    27 4. Thats it!!! Enjoy :)
     244. Thats it!!! Enjoy :)
    2825
    2926
    3027== Screenshots ==
    3128
    32 1. Go to the Settings link from left side bar in wp-admin and then go to the link "WP Default Mail" and then change the settings as per your requirement.
     291. 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.
    33302. Sender name and email id
    34313. Sender name and email id in email client
     
    3734== Changelog ==
    3835
     36
     37
     38
     39
     40
    3941= 2.0 =
    4042
  • wp-default-sender-email-by-it-pixelz/trunk/wp-default-sender-email-itpixelz.php

    r2144582 r2896223  
    1111 * Plugin Name:       Wp Default Sender Email by IT Pixelz
    1212 * 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.1
     13 * Description:       
     14 * Version:           2.
    1515 * Author:            Umar Draz
    1616 * Author URI:        https://profiles.wordpress.org/itpixelz/
     
    2626}
    2727
    28 define( 'WP_DEFAULT_SENDER_EMAIL_BY_IT_PIXELZ_VERSION', '2.0.0' );
     28define( 'WP_DEFAULT_SENDER_EMAIL_BY_IT_PIXELZ_VERSION', '2..0' );
    2929define( 'WP_DEFAULT_SENDER_EMAIL_BY_IT_PIXELZ_OPTIONS_KEY', 'wdsei_itpixelz_options' );
    3030define( '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
    3169
    3270/**
     
    4078}
    4179
    42 /**
    43  * The code that runs during plugin deactivation.
    44  * This action is documented in
    45  * includes/class-wp-default-sender-email-by-it-pixelz-deactivator.php
    46  */
    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 
    5280register_activation_hook( __FILE__, 'activate_wp_default_sender_email_by_it_pixelz' );
    53 register_deactivation_hook( __FILE__, 'deactivate_wp_default_sender_email_by_it_pixelz' );
    5481
    5582/**
     
    6592 */
    6693function run_wp_default_sender_email_by_it_pixelz() {
    67 
    6894    $plugin = new Wp_Default_Sender_Email_By_It_Pixelz();
    6995    $plugin->run();
    70 
    7196}
    7297
Note: See TracChangeset for help on using the changeset viewer.