Plugin Directory

Changeset 3326082

Timestamp:
07/11/2025 06:13:47 AM (4 months ago)
Author:
matteoenna
Message:

release 3.1.1

Location:
wine-cellar-manager
Files:
2 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wine-cellar-manager/tags/3.1.1/class/idealconsumptionalert/wineCellarManager_consumption-notifier_Class.php

    r3323208 r3326082  
    1111        add_action( 'wcm_send_consumption_alert_event', [ $this, 'maybe_send_alert_email' ] );
    1212
    13         register_activation_hook( __FILE__, [ __CLASS__, 'schedule_cron' ] );
     13        add_action( 'init', [ $this, 'init_hooks' ] );
     14
    1415        register_deactivation_hook( __FILE__, [ __CLASS__, 'clear_cron' ] );
     16    }
     17
     18    public function init_hooks() {
     19        if ( ! get_option( 'wcm_cron_scheduled' ) ) {
     20            self::schedule_cron();
     21            update_option( 'wcm_cron_scheduled', true );
     22        }
    1523    }
    1624
     
    2331    public static function clear_cron() {
    2432        wp_clear_scheduled_hook( 'wcm_send_consumption_alert_event' );
     33        delete_option( 'wcm_cron_scheduled' );
    2534    }
    2635
  • wine-cellar-manager/tags/3.1.1/readme.txt

    r3323208 r3326082  
    55Requires PHP: 7.2.5
    66Tested up to: 6.8
    7 Stable tag: 3.1.0
     7Stable tag: 3.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4141- **Wine AI Log**: Keep track of past AI interactions with a private log.
    4242- **Flexible Display Options**:
    43   - `[wine_list_menu_type_and_winery]`: Display your collection with advanced filtering ([Example of use](https://mywinerepository.it/carta-dei-vini/)).
     43  - `[wine_list_menu_type_and_winery]`: Display your collection with advanced filtering ([See the wine list.](https://mywinerepository.it/carta-dei-vini/)).
    4444  - `[wine_list_menu_type_and_winery_bottom]`: Create a professional wine menu layout.
    4545  - `[wine_list_menu_type_region_winery]`: Display wines grouped by type, then region, then winery, ideal for structured menus with geographic focus.
  • wine-cellar-manager/tags/3.1.1/wine-cellar-manager.php

    r3323208 r3326082  
    33   Plugin Name: Wine Cellar Manager
    44   Description: A plugin to manage your wine inventory.
    5    Version: 3.1.0
     5   Version: 3.1.1
    66   Author: Matteo Enna
    77   Author URI: https://matteoenna.it/it/wordpress-work/
  • wine-cellar-manager/trunk/class/idealconsumptionalert/wineCellarManager_consumption-notifier_Class.php

    r3323208 r3326082  
    1111        add_action( 'wcm_send_consumption_alert_event', [ $this, 'maybe_send_alert_email' ] );
    1212
    13         register_activation_hook( __FILE__, [ __CLASS__, 'schedule_cron' ] );
     13        add_action( 'init', [ $this, 'init_hooks' ] );
     14
    1415        register_deactivation_hook( __FILE__, [ __CLASS__, 'clear_cron' ] );
     16    }
     17
     18    public function init_hooks() {
     19        if ( ! get_option( 'wcm_cron_scheduled' ) ) {
     20            self::schedule_cron();
     21            update_option( 'wcm_cron_scheduled', true );
     22        }
    1523    }
    1624
     
    2331    public static function clear_cron() {
    2432        wp_clear_scheduled_hook( 'wcm_send_consumption_alert_event' );
     33        delete_option( 'wcm_cron_scheduled' );
    2534    }
    2635
  • wine-cellar-manager/trunk/readme.txt

    r3323208 r3326082  
    55Requires PHP: 7.2.5
    66Tested up to: 6.8
    7 Stable tag: 3.1.0
     7Stable tag: 3.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4141- **Wine AI Log**: Keep track of past AI interactions with a private log.
    4242- **Flexible Display Options**:
    43   - `[wine_list_menu_type_and_winery]`: Display your collection with advanced filtering ([Example of use](https://mywinerepository.it/carta-dei-vini/)).
     43  - `[wine_list_menu_type_and_winery]`: Display your collection with advanced filtering ([See the wine list.](https://mywinerepository.it/carta-dei-vini/)).
    4444  - `[wine_list_menu_type_and_winery_bottom]`: Create a professional wine menu layout.
    4545  - `[wine_list_menu_type_region_winery]`: Display wines grouped by type, then region, then winery, ideal for structured menus with geographic focus.
  • wine-cellar-manager/trunk/wine-cellar-manager.php

    r3323208 r3326082  
    33   Plugin Name: Wine Cellar Manager
    44   Description: A plugin to manage your wine inventory.
    5    Version: 3.1.0
     5   Version: 3.1.1
    66   Author: Matteo Enna
    77   Author URI: https://matteoenna.it/it/wordpress-work/
Note: See TracChangeset for help on using the changeset viewer.