X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/wpforms-lite/src/Migrations
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
wpforms-lite
/
src
/
Migrations
/
ðŸ“
..
📄
Base.php
(11.87 KB)
📄
Migrations.php
(930 B)
ðŸ“
Tasks
📄
Upgrade159.php
(707 B)
📄
Upgrade1672.php
(863 B)
📄
Upgrade168.php
(1.24 KB)
📄
Upgrade175.php
(2.67 KB)
📄
Upgrade1751.php
(562 B)
📄
Upgrade177.php
(1.21 KB)
📄
Upgrade182.php
(3.04 KB)
📄
Upgrade183.php
(769 B)
📄
Upgrade184.php
(909 B)
📄
Upgrade186.php
(395 B)
📄
Upgrade187.php
(1.35 KB)
📄
Upgrade1_9_1.php
(1.37 KB)
📄
Upgrade1_9_2.php
(911 B)
📄
UpgradeBase.php
(3.43 KB)
Editing: Upgrade1_9_1.php
<?php namespace WPForms\Migrations; /** * Class upgrade for 1.9.1 release. * * @since 1.9.1 */ class Upgrade1_9_1 extends UpgradeBase { /** * Delete existed notifications for the customer. * * @since 1.9.1 * * @return bool|null Upgrade result: * true - the upgrade completed successfully, * false - in the case of failure, * null - upgrade started but not yet finished (background task). */ public function run() { $this->clean_summaries_cron_event(); $notifications_option_key = 'wpforms_notifications'; $notifications = get_option( $notifications_option_key, [] ); if ( empty( $notifications['events'] ) ) { return true; } $notifications['events'] = []; update_option( 'wpforms_notifications', $notifications ); return true; } /** * Clean summaries and entries count cron events, * Since the 1.9.1 release these cron events recurrences have been changed to single event. * The events will be recreated on the next page load. * * @since 1.9.1 */ private function clean_summaries_cron_event() { if ( wp_next_scheduled( 'wpforms_weekly_entries_count_cron' ) ) { wp_clear_scheduled_hook( 'wpforms_weekly_entries_count_cron' ); } if ( wp_next_scheduled( 'wpforms_email_summaries_cron' ) ) { wp_clear_scheduled_hook( 'wpforms_email_summaries_cron' ); } } }
Upload File
Create Folder