title: How do I get a local variable value in whmcs hook?
body: <p>How do I get a  local variable value in whmcs hook?</p>
  
  <p>$additionalFieldOne = "123";</p>
  
  <pre><code>add_hook('AdminClientDomainsTabFields', 1, function($vars) {
  
      return array("Domain State"=&gt;$additionalFieldOne);  
  
  });
  </code></pre>
  
  <p>variable $additionalFieldOne in hook function not return value
  please help me</p>