Plugin Directory

Changeset 3489772


Ignore:
Timestamp:
03/24/2026 09:20:26 AM (4 days ago)
Author:
notifyevents
Message:

Fix initialization

Location:
notify-events/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • notify-events/trunk/models/Core.php

    r3487279 r3489772  
    3333     * Core constructor.
    3434     */
    35     public function __construct()
     35    protected function __construct()
    3636    {
    3737        if (is_admin()) {
     
    5252        }
    5353
    54         do_action('wpne_init');
    55 
    5654        add_action('init', function () {
    5755            Channel::register_post_type();
     
    6058            do_action('wpne_module_init');
    6159        });
     60
     61        do_action('wpne_init');
    6262    }
    6363
  • notify-events/trunk/modules/wordpress/models/events/post/PostCustom.php

    r2919893 r3489772  
    6363                ],
    6464                [
     65                    // Пустая строка означает «любое значение» (чекбокс снят).
     66                    // Используем IN, чтобы событие срабатывало как при '' (любое),
     67                    // так и при точном совпадении с фактическим состоянием.
    6568                    'key'     => '_wpne_post_is_status_changed',
    66                     'value'   => (int)($old_status != $new_status),
     69                    'value'   => ['', (string)(int)($old_status != $new_status)],
     70                    'compare' => 'IN',
    6771                ],
    6872                [
  • notify-events/trunk/notify-events.php

    r3487279 r3489772  
    33Plugin Name: Notify.Events
    44Plugin URI: https://notify.events/source/wordpress
    5 Description: Notify.Events plugin is ultimate tool for any kind of notifications from your WordPress website to more than 20 messengers and platfroms such as SMS, voicecall, Facebook messenger, Viber, Telegram and many more
     5Description: Notify.Events plugin is ultimate tool for any kind of notifications from your WordPress website to more than 20 messengers and platforms such as SMS, voicecall, Facebook messenger, Viber, Telegram and many more
    66Author: Notify.Events
    77Author URI: https://notify.events/
    8 Version: 1.4.1
     8Version: 1.4.2
    99License: GPL-2.0
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1313*/
    1414
     15if (!defined('ABSPATH')) {
     16    exit;
     17}
     18
    1519use notify_events\models\Core;
    1620use notify_events\modules\contact_form_7\models\ContactForm7;
    17 use notify_events\modules\easy_digital_downloads\models\EasyDigitalDownloads;
    1821use notify_events\modules\ninja_forms\models\NinjaForms;
    1922use notify_events\modules\woocommerce\models\WooCommerce;
Note: See TracChangeset for help on using the changeset viewer.