| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | /** |
| 4 | 4 | * Plugin Name: WP Data Access |
| 5 | 5 | * Plugin URI: https://wpdataaccess.com/ |
| 6 | 6 | * Description: A powerful data-driven App Builder with an intuitive Table Builder, a highly customizable Form Builder and interactive Chart support in 35 languages |
| 7 | - * Version: 5.5.83 | |
| 7 | + * Version: 5.5.87 | |
| 8 | 8 | * Author: Passionate Programmers B.V. |
| 9 | 9 | * Author URI: https://wpdataaccess.com/ |
| 10 | 10 | * Text Domain: wp-data-access |
| 11 | 11 | * License: GPL-2.0+ |
| @@ -55,8 +55,9 @@ | ||
| 55 | 55 | 'slug' => 'wpda_navi', |
| 56 | 56 | 'contact' => false, |
| 57 | 57 | 'network' => true, |
| 58 | 58 | ), |
| 59 | + 'has_affiliation' => 'all', | |
| 59 | 60 | 'is_live' => true, |
| 60 | 61 | 'is_org_compliant' => true, |
| 61 | 62 | ) ); |
| 62 | 63 | } |
| @@ -278,8 +279,21 @@ | ||
| 278 | 279 | } |
| 279 | 280 | // phpcs:enable WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQLPlaceholders, WordPress.DB.DirectDatabaseQuery.SchemaChange |
| 280 | 281 | } |
| 281 | 282 | |
| 283 | + function wpda_unschedule_event( $hook ) { | |
| 284 | + $crons = _get_cron_array(); | |
| 285 | + foreach ( $crons as $timestamp => $cron ) { | |
| 286 | + if ( isset( $cron[$hook] ) ) { | |
| 287 | + foreach ( $cron[$hook] as $event ) { | |
| 288 | + if ( isset( $event['args'] ) ) { | |
| 289 | + wp_unschedule_event( $timestamp, $hook, $event['args'] ); | |
| 290 | + } | |
| 291 | + } | |
| 292 | + } | |
| 293 | + } | |
| 294 | + } | |
| 295 | + | |
| 282 | 296 | /** |
| 283 | 297 | * Uninstall WP Data Access tables, options and meta keys |
| 284 | 298 | * |
| 285 | 299 | * @return void |
| @@ -301,8 +315,12 @@ | ||
| 301 | 315 | // Uninstall on single site installation. |
| 302 | 316 | wpda_uninstall_blog(); |
| 303 | 317 | } |
| 304 | 318 | WPDA::wpda_delete_content_folder(); |
| 319 | + // Unscheduled all WP Data Access events | |
| 320 | + wpda_unschedule_event( 'wpda_data_backup' ); | |
| 321 | + wpda_unschedule_event( \WPDataAccess\Query_Builder\WPDA_Query_Builder_Scheduler::SCHEDULER_HOOK_NAME ); | |
| 322 | + wpda_unschedule_event( \WPDataAccess\Utilities\WPDA_Export_Scheduler::SCHEDULER_HOOK_NAME ); | |
| 305 | 323 | } |
| 306 | 324 | |
| 307 | 325 | wpda_freemius()->add_action( 'after_uninstall', 'wpda_uninstall' ); |
| 308 | 326 | /** |