get( $blog_id ); return ! empty( $key ); } /** * Checks if a given sub-site has any bundle products keys. * * @author Vova Feldman (@svovaf) * @since 1.1.0 * * @param int|null $blog_id * * @return bool */ public function site_has_children_keys( $blog_id = null ) { $children_keys = $this->get_children( $blog_id ); return ! empty( $children_keys ); } /** * Override this only when the product supports a network level integration. * * @author Vova Feldman (@svovaf) * @since 1.1.0 * * @return bool */ public function is_network_migration() { return false; } /** * Override this when licenses are identical across the network. I.E. if a license * is activated it has to be the same license for all the product installation's in the * network. * * @author Vova Feldman (@svovaf) * @since 1.1.0 * * @return bool */ public function are_licenses_network_identical() { return false; } /** * Activates a bundle license on the installed child products, after successfully migrating the license. * * @author Vova Feldman (@svovaf) * @since 2.0.0 * * @param \FS_User $user * @param string|null $bundle_license_key */ abstract function activate_bundle_license_after_migration( FS_User $user, $bundle_license_key = null ); }