Plugin Directory

Changeset 3344007


Ignore:
Timestamp:
08/13/2025 08:56:11 AM (4 months ago)
Author:
Icegram
Message:

Release v 1.0.6

Location:
icegram-mailer
Files:
102 added
3 edited

Legend:

Unmodified
Added
Removed
  • icegram-mailer/trunk/icegram-mailer.php

    r3328703 r3344007  
    1616 * Plugin Name:       Icegram Mailer
    1717 * Plugin URI:        https://icegram.com
    18  * Description:       Plugin to send emails via Icegram sending serivce
    19  * Version:           1.0.5
     18 * Description:       Plugin to send emails via Icegram sending service
     19 * Version:           1.0.6
    2020 * Author:            Icegram
    2121 * Requires at least: 4.7
     
    4040 */
    4141if ( ! defined( 'ICEGRAM_MAILER_VERSION' ) ) {
    42     define( 'ICEGRAM_MAILER_VERSION', '1.0.5' );
     42    define( 'ICEGRAM_MAILER_VERSION', '1.0.6' );
    4343}
    4444
  • icegram-mailer/trunk/includes/feedback.php

    r3325337 r3344007  
    7070
    7171add_filter( 'ig_mailer_additional_feedback_meta_info', 'ig_mailer_get_additional_info', 10, 2 );
     72
     73
     74if ( ! function_exists( 'ig_mailer_subscribe_to_plugin_deactivation_list' ) ) {
     75    function ig_mailer_subscribe_to_plugin_deactivation_list( $data ) {
     76       
     77        $admin_email = get_bloginfo( 'admin_email' );
     78        $user        = get_user_by( 'email', $admin_email );
     79        $admin_name  = '';
     80        if ( $user instanceof WP_User ) {
     81            $admin_name = $user->display_name;
     82        }
     83
     84        $email = $admin_email;
     85        $name  = $admin_name;
     86
     87        switch ( $data['feedback']['value'] ) {
     88            case 'i-could-not-get-the-plugin-to-work':
     89                $list = '6a7aacc98417';
     90                break;
     91           
     92            case 'my-free-email-limit-has-been-exhausted':
     93                $list = '043753cf0041';
     94                break;
     95           
     96            case 'i-am-switching-to-a-different-plugin':
     97                $list = 'd0d2b6bb23c7';
     98                break;
     99           
     100            case 'installed-plugin-unknowingly':
     101                $list = 'c7ce22022ce5';
     102                break;
     103
     104            default:
     105                $list = '';
     106                break;
     107        }
     108
     109        if ( ! empty( $list ) && is_email( $email ) ) {
     110
     111            $url_params = array(
     112            'ig_es_external_action' => 'subscribe',
     113            'name'                  => $name,
     114            'email'                 => $email,
     115            'list'                  => $list,
     116            );
     117
     118            $ip_address = icegram_mailer_get_ip();
     119            if ( ! empty( $ip_address ) && 'UNKNOWN' !== $ip_address ) {
     120                $url_params['ip_address'] = $ip_address;
     121            }
     122
     123            $ig_url = 'https://www.icegram.com/';
     124            $ig_url = add_query_arg( $url_params, $ig_url );
     125
     126            $args = array(
     127            'timeout' => 15,
     128            'blocking'  => false,
     129            );
     130
     131            // Make a get request.
     132            wp_remote_get( $ig_url, $args );
     133        }
     134    }
     135}
     136add_action( 'ig_mailer_deactivation_feedback_submitted', 'ig_mailer_subscribe_to_plugin_deactivation_list' );
  • icegram-mailer/trunk/readme.txt

    r3328703 r3344007  
    66Tested up to: 6.7
    77Requires PHP: 7.0
    8 Stable tag: 1.0.5
     8Stable tag: 1.0.6
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    185185== Upgrade Notice ==
    186186
     187= 1.0.6 =
     188* Update: Added POT file for translations
     189
     190== Changelog ==
     191
     192= 1.0.6 =
     193* Update: Added POT file for translations
     194
    187195= 1.0.5 =
    188196* Improvement: Separation between frontend and backend processes for improved performance and flexibility.
    189197* Update: Tested up to WordPress 6.8
    190198
    191 == Changelog ==
    192 
    193 = 1.0.5 =
    194 * Improvement: Separation between frontend and backend processes for improved performance and flexibility.
    195 * Update: Tested up to WordPress 6.8
    196 
    197199= 1.0.4 =
    198200* Fix: Email stats calculation issue on some sites
Note: See TracChangeset for help on using the changeset viewer.