Skip to content

Commit 24d7b27

Browse files
fajardoleoswashata
authored andcommitted
[action] [license-activation] Add a new action that is triggered after a license activation.
1 parent fea660e commit 24d7b27

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

includes/class-freemius.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14034,6 +14034,10 @@ private function activate_license(
1403414034
$result['next_page'] = $next_page;
1403514035
}
1403614036

14037+
if ( $result['success'] ) {
14038+
$this->do_action( 'after_license_activation' );
14039+
}
14040+
1403714041
return $result;
1403814042
}
1403914043

@@ -21667,6 +21671,8 @@ protected function _activate_license( $background = false, $premium_license = nu
2166721671
return;
2166821672
}
2166921673

21674+
$this->do_action( 'after_license_activation' );
21675+
2167021676
$premium_license = new FS_Plugin_License( $license );
2167121677

2167221678
// Updated site plan.

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.1';
18+
$this_sdk_version = '2.12.2.2';
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_activation_{plugin_slug}
456457
* fs_after_license_deactivation_{plugin_slug}
457458
* fs_after_plans_sync_{plugin_slug}
458459
*

0 commit comments

Comments
 (0)