Changeset 3250104
- Timestamp:
- 03/04/2025 07:38:33 AM (13 months ago)
- Location:
- rtdashboards/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
rtdashboards.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rtdashboards/trunk/readme.txt
r3246600 r3250104 4 4 Requires at least: 6.7 5 5 Tested up to: 6.7 6 Stable tag: 1.0 6 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 == Changelog == 46 46 47 * v.1.0.1 Show an error message if you want to install this plugin, but Woocommerce is not installed 47 48 * v.1.0 First release -
rtdashboards/trunk/rtdashboards.php
r3246600 r3250104 5 5 * Description: Lightweight plugin to send orders to rtdashboards.com 6 6 * Author: Marcel van Doornen 7 * Version: 1.0 7 * Version: 1.0.1 8 8 * Author URI: https://webbouwplus.nl 9 9 * License: GPL2+ … … 184 184 rtdashboards_run(); 185 185 } 186 else { 187 // WooCommerce is not active, show an error message. 188 if (is_admin()) { 189 add_action('admin_notices', 'rtdashboards_error_notice'); 190 } 191 192 deactivate_plugins(plugin_basename(__FILE__)); 193 return; // Terminate and do not load further script. 194 } 195 196 function rtdashboards_error_notice() { 197 ?> 198 <div class="error"> 199 <p><?php _e('Your plugin has been deactivated because it requires WooCommerce to function.', 'rtdashboards'); ?></p> 200 </div> 201 <?php 202 }
Note: See TracChangeset
for help on using the changeset viewer.