public function hookVoteScore(GWF_User $user, array $args) { $vsid = (int) $args[0]; if (false !== ($site = WC_Site::getByVSID($vsid))) { $this->includeVotes(); return $site->onRecalcVotes(); } elseif (false !== ($chall = WC_Challenge::getByVSID($vsid))) { return $chall->onRecalcVotes(); } else { return true; } }