Skip to content

Commit fea660e

Browse files
authored
[action] [license-deactivation] Add a new action that is triggered after a license deactivation. (#826)
1 parent 5ff4d41 commit fea660e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

includes/class-freemius.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21746,6 +21746,8 @@ private function handle_license_deactivation_result( $license, $hmm_text = false
2174621746
'error'
2174721747
);
2174821748

21749+
$this->do_action( 'after_license_deactivation', $license );
21750+
2174921751
return;
2175021752
}
2175121753

@@ -21766,6 +21768,8 @@ private function handle_license_deactivation_result( $license, $hmm_text = false
2176621768

2176721769
$this->_store_account();
2176821770

21771+
$this->do_action( 'after_license_deactivation', $license );
21772+
2176921773
if ( $show_notice ) {
2177021774
$this->_admin_notices->add(
2177121775
sprintf( $this->is_only_premium() ?

start.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @var string
1717
*/
18-
$this_sdk_version = '2.12.2';
18+
$this_sdk_version = '2.12.2.1';
1919

2020
#region SDK Selection Logic --------------------------------------------------------------------
2121

@@ -453,6 +453,7 @@ function_exists( 'wp_is_json_request' ) &&
453453
*
454454
* fs_after_license_loaded_{plugin_slug}
455455
* fs_after_license_change_{plugin_slug}
456+
* fs_after_license_deactivation_{plugin_slug}
456457
* fs_after_plans_sync_{plugin_slug}
457458
*
458459
* fs_after_account_details_{plugin_slug}

0 commit comments

Comments
 (0)