Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion includes/class-freemius.php
Original file line number Diff line number Diff line change
Expand Up @@ -17653,6 +17653,31 @@ private function setup_user( $id, $public_key, $secret_key ) {
/**
* Install plugin with new user.
*
* You can use this method to sync activation with the Freemius WP SDK where the activation happened outside of the regular opt-in flow, for example if you're using an external licensing server with our api:
*
* https://docs.freemius.com/api/licenses/activate
*
* In that case you can call this method like following:
*
* ```
*
* my_fs()->install_with_new_user(
* $result['user_id'],
* $result['user_public_key'],
* $result['user_secret_key'],
* $result['is_marketing_allowed'],
* null,
* true,
* $result['install_id'],
* $result['install_public_key'],
* $result['install_secret_key'],
* false
* );
*
* ```
*
* Here `$result` represents the object returned by the API endpoint.
*
* @author Vova Feldman (@svovaf)
* @since 1.1.7.4
*
Expand All @@ -17670,7 +17695,7 @@ private function setup_user( $id, $public_key, $secret_key ) {
*
* @return string If redirect is `false`, returns the next page the user should be redirected to.
*/
private function install_with_new_user(
public function install_with_new_user(
$user_id,
$user_public_key,
$user_secret_key,
Expand Down
2 changes: 1 addition & 1 deletion start.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @var string
*/
$this_sdk_version = '2.13.1';
$this_sdk_version = '2.13.1.1';

#region SDK Selection Logic --------------------------------------------------------------------

Expand Down
Loading