Change the default state of the MailChimp’s “subscribe to newsletter” checkbox to checked.

In fields-functions.php

Edit:

$res .= "<div class='userpro-checkbox-wrap'>";
$res .= "<label class='userpro-checkbox full'><span ";
$res .= '></span><input type="checkbox" value="unsubscribed" name="'.$key.'-'.$i.'" ';
$res .= " />".$array['list_text']."</label>";
$res .= "</div>";

To

$res .= "<div class='userpro-checkbox-wrap'>";
$res .= "<label class='userpro-checkbox full'><span class='checked'";
$res .= '></span><input type="checkbox" value="unsubscribed" checked="checked" name="'.$key.'-'.$i.'" ';
$res .= " />".$array['list_text']."</label>";
$res .= "</div>";

Add “Checked” state to field by default.

Was this article helpful?

Related Articles

Leave A Comment?