Changeset 3313471
- Timestamp:
- 06/17/2025 06:47:24 PM (10 months ago)
- Location:
- pricematrix
- Files:
-
- 1 added
- 6 edited
- 1 copied
-
assets/screenshot-1.png (added)
-
tags/1.0.0 (copied) (copied from pricematrix/trunk)
-
tags/1.0.0/Inc/Deactivate.php (modified) (3 diffs)
-
tags/1.0.0/pricematrix.php (modified) (2 diffs)
-
tags/1.0.0/readme.txt (modified) (1 diff)
-
trunk/Inc/Deactivate.php (modified) (3 diffs)
-
trunk/pricematrix.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pricematrix/tags/1.0.0/Inc/Deactivate.php
r3313370 r3313471 8 8 * @package PriceMatrix 9 9 */ 10 class Deactivate { 10 class Deactivate 11 { 11 12 /** 12 13 * Deactivation hook callback … … 14 15 * @return void 15 16 */ 16 public static function deactivate() { 17 public static function deactivate() 18 { 17 19 // Clear any scheduled hooks 18 20 self::clear_scheduled_hooks(); 19 21 22 // Clear any transientsAdd commentMore actions 23 self::clear_transients(); 24 20 25 // Clear rewrite rules 21 26 flush_rewrite_rules(); 22 27 } 23 28 24 29 /** 25 30 * Clear any scheduled hooks … … 27 32 * @return void 28 33 */ 29 private static function clear_scheduled_hooks() { 34 private static function clear_scheduled_hooks() 35 { 30 36 wp_clear_scheduled_hook('pricematrix_daily_cleanup'); 31 37 wp_clear_scheduled_hook('pricematrix_weekly_maintenance'); 32 38 } 33 39 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 34 65 } -
pricematrix/tags/1.0.0/pricematrix.php
r3313370 r3313471 3 3 * Plugin Name: PriceMatrix - The Ultimate Pricing Table 4 4 * Description: A powerful pricing matrix solution for managing complex pricing structures and calculations. 5 * Version: 0.1.05 * Version: 1.0.0 6 6 * Author: Md Abul Bashar 7 7 * Author URI: https://facebook.com/hmbashar … … 58 58 private function define_constants() 59 59 { 60 define('PRICEMATRIX_VERSION', ' 0.1.0');60 define('PRICEMATRIX_VERSION', '1.0.0'); 61 61 define('PRICEMATRIX_PATH', plugin_dir_path(__FILE__)); 62 62 define('PRICEMATRIX_URL', plugin_dir_url(__FILE__)); -
pricematrix/tags/1.0.0/readme.txt
r3313370 r3313471 1 1 === PriceMatrix - The Ultimate Pricing Table === 2 2 Contributors: hmbashar 3 Donate link: https:// facebook.com/hmbashar3 Donate link: https://wise.com/pay/me/mdabulb9 4 4 Tags: pricing table, pricing, tables, gutenberg blocks 5 5 Requires at least: 5.8 6 6 Tested up to: 6.8 7 7 Requires PHP: 8.0 8 Stable tag: 0.1.08 Stable tag: 1.0.0 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
pricematrix/trunk/Inc/Deactivate.php
r3313370 r3313471 8 8 * @package PriceMatrix 9 9 */ 10 class Deactivate { 10 class Deactivate 11 { 11 12 /** 12 13 * Deactivation hook callback … … 14 15 * @return void 15 16 */ 16 public static function deactivate() { 17 public static function deactivate() 18 { 17 19 // Clear any scheduled hooks 18 20 self::clear_scheduled_hooks(); 19 21 22 // Clear any transientsAdd commentMore actions 23 self::clear_transients(); 24 20 25 // Clear rewrite rules 21 26 flush_rewrite_rules(); 22 27 } 23 28 24 29 /** 25 30 * Clear any scheduled hooks … … 27 32 * @return void 28 33 */ 29 private static function clear_scheduled_hooks() { 34 private static function clear_scheduled_hooks() 35 { 30 36 wp_clear_scheduled_hook('pricematrix_daily_cleanup'); 31 37 wp_clear_scheduled_hook('pricematrix_weekly_maintenance'); 32 38 } 33 39 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 34 65 } -
pricematrix/trunk/pricematrix.php
r3313370 r3313471 3 3 * Plugin Name: PriceMatrix - The Ultimate Pricing Table 4 4 * Description: A powerful pricing matrix solution for managing complex pricing structures and calculations. 5 * Version: 0.1.05 * Version: 1.0.0 6 6 * Author: Md Abul Bashar 7 7 * Author URI: https://facebook.com/hmbashar … … 58 58 private function define_constants() 59 59 { 60 define('PRICEMATRIX_VERSION', ' 0.1.0');60 define('PRICEMATRIX_VERSION', '1.0.0'); 61 61 define('PRICEMATRIX_PATH', plugin_dir_path(__FILE__)); 62 62 define('PRICEMATRIX_URL', plugin_dir_url(__FILE__)); -
pricematrix/trunk/readme.txt
r3313370 r3313471 1 1 === PriceMatrix - The Ultimate Pricing Table === 2 2 Contributors: hmbashar 3 Donate link: https:// facebook.com/hmbashar3 Donate link: https://wise.com/pay/me/mdabulb9 4 4 Tags: pricing table, pricing, tables, gutenberg blocks 5 5 Requires at least: 5.8 6 6 Tested up to: 6.8 7 7 Requires PHP: 8.0 8 Stable tag: 0.1.08 Stable tag: 1.0.0 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.