Disable or hide “Gender” features
-
Hi – I took a pretty deep look into the code and it seems that the Gender field is hard coded into the plugin in a bunch of places. This is kind of a deal-breaker for us to use the system. Would you consider making the Gender field filterable – so that it’s not visible in the admin or the signup forms? Same would be great to apply to first name, last name, language as well, but Gender is the most important one for us.
Ideal would be to be able to totally remove them with a hook or admin setting, but a more basic solution that would be very easy to implement would be to just add unique classes so we can hide things with CSS.
Example:
// profile/index.php
<tr class="newsletter-admin-gender newsletter-admin-profile-gender">
<th><?php esc_html_e('Gender', 'newsletter') ?></th>
<td>
<?php $controls->checkbox2('sex') ?>
</td>
</tr>
// subscription/form.php
<tr class="newsletter-admin-gender newsletter-admin-subscription-gender">
<th style="vertical-align: top"><?php esc_html_e('Gender', 'newsletter') ?></th>
<td style="vertical-align: top">
// ... etc.
// users/edit.php
<tr class="newsletter-admin-gender newsletter-admin-users-edit-gender">
<th><?php esc_html_e('Gender', 'newsletter'); ?></th>
<td>
<?php $controls->gender('sex'); ?>
</td>
</tr>Thanks for considering it! Let us know if you accept pull requests anywhere and I would be happy to contribute a more thorough suggestion.
The topic ‘Disable or hide “Gender” features’ is closed to new replies.