Adding an empty option for the member select in admin side.
Testing to make sure the member plugin can be turned off and coupons
still function properly.
include $this->pluginDirName . 'views/admin/coupon_meta.php';
}
+ /**
+ * Grab the list of members.
+ * If they have the member plugin.
+ */
private function _getMemberList()
{
global $wpdb;
<li>
<label>Member: </label>
<select name="glm_coupons_member">
+ <option value="">-- Select a Member --</option>
<?php foreach ($memberList as $memberOption) :?>
<option value="<?php echo $memberOption['id']; ?>" <?php if ($glm_coupons_member == $memberOption['id']) { echo ' selected'; } ?>><?php echo $memberOption['name']; ?></option>
<?php endforeach; ?>