Changeset 2974343
- Timestamp:
- 10/03/2023 01:52:51 PM (3 years ago)
- Location:
- thanh-toan-chuyen-khoan
- Files:
-
- 2 edited
-
tags/1.0.0/ttck.php (modified) (1 diff)
-
trunk/ttck.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
thanh-toan-chuyen-khoan/tags/1.0.0/ttck.php
r2965789 r2974343 70 70 71 71 add_action('init', array($this, 'init')); 72 72 register_activation_hook( __FILE__, array($this,'activate') ); 73 register_deactivation_hook( __FILE__, array($this,'deactivate') ); 73 74 $this->settings = self::get_settings(); 74 75 } 75 76 function activate() { 77 if( version_compare(phpversion(), '5.6', '<') ) { 78 wp_die('You need to update your PHP version. Require: PHP 5.6+'); 79 } 80 if(!extension_loaded('gd')) wp_die('Please activate PHP GD library.'); 81 if(!class_exists('WooCommerce')) wp_die('Please activate woocommerce plugin'); 82 wp_redirect(admin_url('admin.php?page=qhtp')); 83 } 84 function deactivate() { 85 ; 86 } 76 87 77 88 public function init() -
thanh-toan-chuyen-khoan/trunk/ttck.php
r2965789 r2974343 70 70 71 71 add_action('init', array($this, 'init')); 72 72 register_activation_hook( __FILE__, array($this,'activate') ); 73 register_deactivation_hook( __FILE__, array($this,'deactivate') ); 73 74 $this->settings = self::get_settings(); 74 75 } 75 76 76 77 function activate() { 78 if( version_compare(phpversion(), '5.6', '<') ) { 79 wp_die('You need to update your PHP version. Require: PHP 5.6+'); 80 } 81 if(!extension_loaded('gd')) wp_die('Please activate PHP GD library.'); 82 if(!class_exists('WooCommerce')) wp_die('Please activate woocommerce plugin'); 83 wp_redirect(admin_url('admin.php?page=qhtp')); 84 } 85 function deactivate() { 86 ; 87 } 77 88 public function init() 78 89 {
Note: See TracChangeset
for help on using the changeset viewer.