how to edit wp-login action whenever if a user puts on hold?
<p>I have written a functionality like super admin can put user accounts on "hold". I have to make sure the user account which put his account on hold unable to login. The problem here is the user is able to login if still his account is on hold. I am using a 'custom user meta' field called 'holdUser' while super admin put a user on hold. While user login I am using the wordpress's wp-login action, how to edit wp-login action so that a user cannot login based on a custom user meta field in wordpress. While user account is put on hold I am updating the 'user meta' like below:</p>

<pre><code>if(isset($_GET['user_id']) &amp;&amp; ($_GET['action']=='hold'))
{
  update_user_meta( $_GET['user_id'], 'holdUser',1 );
  wp_mail($email_to, $subject, $content,$headers);
}
</code></pre>

<p>My Login form has the following code:</p>

<pre><code>&lt;form method="post" action="'.$this-&gt;SiteUrl.'wp-login.php"&gt;
  &lt;input type="text" id="user_login" name="log"&gt;
  &lt;input type="password" name="pwd"&gt;
  &lt;button target="" class="submit"&gt;Login&lt;/button&gt;
&lt;/form&gt;
</code></pre>

<p>My Question here is how to edit 'wp-login.php' hook based on a user_meta field 'holdUser' if its value is 1 then not to login that user.?</p>