/** * This operation overwrites registration information. * * Sometimes, it might happen that the current site is already registered * to our customer's account. This happens when our customer has a * registered site whose URL corresponds to this site URL. If that's the * case, then we simply use the already-registered site's ID and assume * this site is the site that we registered some time ago. * * @param string $registered Whether the current site is registered or not. * If `registered`, the site is registered (and * the `$id` will be specified). Otherwise, * `not-registered` should be used. * @param string $id The ID of the already-registered site. * * @return void * * @see NelioABAccountPageController * * @since 3.2.0 */ public static function fix_registration_info($registered, $id = '0') { self::update_nelioab_option('has_a_configured_site', 'registered' === $registered); NelioABAccountSettings::set_site_id($id); }