Plugin Directory

Changeset 3313471


Ignore:
Timestamp:
06/17/2025 06:47:24 PM (10 months ago)
Author:
hmbashar
Message:

Update to version 1.0.0 from GitHub

Location:
pricematrix
Files:
1 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pricematrix/tags/1.0.0/Inc/Deactivate.php

    r3313370 r3313471  
    88 * @package PriceMatrix
    99 */
    10 class Deactivate {
     10class Deactivate
     11{
    1112    /**
    1213     * Deactivation hook callback
     
    1415     * @return void
    1516     */
    16     public static function deactivate() {
     17    public static function deactivate()
     18    {
    1719        // Clear any scheduled hooks
    1820        self::clear_scheduled_hooks();
    19        
     21
     22        // Clear any transientsAdd commentMore actions
     23        self::clear_transients();
     24
    2025        // Clear rewrite rules
    2126        flush_rewrite_rules();
    2227    }
    23    
     28
    2429    /**
    2530     * Clear any scheduled hooks
     
    2732     * @return void
    2833     */
    29     private static function clear_scheduled_hooks() {
     34    private static function clear_scheduled_hooks()
     35    {
    3036        wp_clear_scheduled_hook('pricematrix_daily_cleanup');
    3137        wp_clear_scheduled_hook('pricematrix_weekly_maintenance');
    3238    }
    3339
     40    /**Add commentMore actions
     41     * Clear any transients
     42     *
     43     * @return void
     44     */
     45    private static function clear_transients() {
     46        global $wpdb;
     47   
     48        // Reviewer note: Used only during deactivation for cleanup, since set_transient() does not autoload by default.
     49        // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
     50        $transients = $wpdb->get_col(
     51            $wpdb->prepare(
     52                "SELECT option_name FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s",
     53                $wpdb->esc_like('_transient_pricematrix_') . '%',
     54                $wpdb->esc_like('_transient_timeout_pricematrix_') . '%'
     55            )
     56        );
     57   
     58        foreach ( $transients as $option ) {
     59            $transient_name = str_replace( array( '_transient_', '_transient_timeout_' ), '', $option );
     60            delete_transient( $transient_name );
     61        }
     62    }
     63   
     64
    3465}
  • pricematrix/tags/1.0.0/pricematrix.php

    r3313370 r3313471  
    33 * Plugin Name: PriceMatrix - The Ultimate Pricing Table
    44 * Description: A powerful pricing matrix solution for managing complex pricing structures and calculations.
    5  * Version: 0.1.0
     5 * Version: 1.0.0
    66 * Author: Md Abul Bashar
    77 * Author URI: https://facebook.com/hmbashar
     
    5858    private function define_constants()
    5959    {
    60         define('PRICEMATRIX_VERSION', '0.1.0');
     60        define('PRICEMATRIX_VERSION', '1.0.0');
    6161        define('PRICEMATRIX_PATH', plugin_dir_path(__FILE__));
    6262        define('PRICEMATRIX_URL', plugin_dir_url(__FILE__));
  • pricematrix/tags/1.0.0/readme.txt

    r3313370 r3313471  
    11=== PriceMatrix - The Ultimate Pricing Table ===
    22Contributors: hmbashar
    3 Donate link: https://facebook.com/hmbashar
     3Donate link: https://wise.com/pay/me/mdabulb9
    44Tags: pricing table, pricing, tables, gutenberg blocks
    55Requires at least: 5.8
    66Tested up to: 6.8
    77Requires PHP: 8.0
    8 Stable tag: 0.1.0
     8Stable tag: 1.0.0
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • pricematrix/trunk/Inc/Deactivate.php

    r3313370 r3313471  
    88 * @package PriceMatrix
    99 */
    10 class Deactivate {
     10class Deactivate
     11{
    1112    /**
    1213     * Deactivation hook callback
     
    1415     * @return void
    1516     */
    16     public static function deactivate() {
     17    public static function deactivate()
     18    {
    1719        // Clear any scheduled hooks
    1820        self::clear_scheduled_hooks();
    19        
     21
     22        // Clear any transientsAdd commentMore actions
     23        self::clear_transients();
     24
    2025        // Clear rewrite rules
    2126        flush_rewrite_rules();
    2227    }
    23    
     28
    2429    /**
    2530     * Clear any scheduled hooks
     
    2732     * @return void
    2833     */
    29     private static function clear_scheduled_hooks() {
     34    private static function clear_scheduled_hooks()
     35    {
    3036        wp_clear_scheduled_hook('pricematrix_daily_cleanup');
    3137        wp_clear_scheduled_hook('pricematrix_weekly_maintenance');
    3238    }
    3339
     40    /**Add commentMore actions
     41     * Clear any transients
     42     *
     43     * @return void
     44     */
     45    private static function clear_transients() {
     46        global $wpdb;
     47   
     48        // Reviewer note: Used only during deactivation for cleanup, since set_transient() does not autoload by default.
     49        // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
     50        $transients = $wpdb->get_col(
     51            $wpdb->prepare(
     52                "SELECT option_name FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s",
     53                $wpdb->esc_like('_transient_pricematrix_') . '%',
     54                $wpdb->esc_like('_transient_timeout_pricematrix_') . '%'
     55            )
     56        );
     57   
     58        foreach ( $transients as $option ) {
     59            $transient_name = str_replace( array( '_transient_', '_transient_timeout_' ), '', $option );
     60            delete_transient( $transient_name );
     61        }
     62    }
     63   
     64
    3465}
  • pricematrix/trunk/pricematrix.php

    r3313370 r3313471  
    33 * Plugin Name: PriceMatrix - The Ultimate Pricing Table
    44 * Description: A powerful pricing matrix solution for managing complex pricing structures and calculations.
    5  * Version: 0.1.0
     5 * Version: 1.0.0
    66 * Author: Md Abul Bashar
    77 * Author URI: https://facebook.com/hmbashar
     
    5858    private function define_constants()
    5959    {
    60         define('PRICEMATRIX_VERSION', '0.1.0');
     60        define('PRICEMATRIX_VERSION', '1.0.0');
    6161        define('PRICEMATRIX_PATH', plugin_dir_path(__FILE__));
    6262        define('PRICEMATRIX_URL', plugin_dir_url(__FILE__));
  • pricematrix/trunk/readme.txt

    r3313370 r3313471  
    11=== PriceMatrix - The Ultimate Pricing Table ===
    22Contributors: hmbashar
    3 Donate link: https://facebook.com/hmbashar
     3Donate link: https://wise.com/pay/me/mdabulb9
    44Tags: pricing table, pricing, tables, gutenberg blocks
    55Requires at least: 5.8
    66Tested up to: 6.8
    77Requires PHP: 8.0
    8 Stable tag: 0.1.0
     8Stable tag: 1.0.0
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.