diff --git a/includes/class-freemius.php b/includes/class-freemius.php index 08e6cde7..755968d7 100755 --- a/includes/class-freemius.php +++ b/includes/class-freemius.php @@ -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 * @@ -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, diff --git a/start.php b/start.php index 8283ed54..39087778 100644 --- a/start.php +++ b/start.php @@ -15,7 +15,7 @@ * * @var string */ - $this_sdk_version = '2.13.1'; + $this_sdk_version = '2.13.1.1'; #region SDK Selection Logic --------------------------------------------------------------------