Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/muhfaris/member-zone/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Screenshot
Settings
Membership
Member list
Custom hooks registration
// Add content before the registration form
add_action('memberzone_before_registration_form', function() {
echo '<p class="memberzone-form-intro">' . esc_html__('Please fill out the form below to register.', 'memberzone') . '</p>';
});
// Add a custom field after the username field
add_action('memberzone_after_username_field', function() {
echo '<div class="memberzone-field-group">';
echo '<input type="text" name="first_name" placeholder="' . esc_attr__('First Name', 'memberzone') . '" class="memberzone-input memberzone-first-name">';
echo '</div>';
});
// Add content after the registration form
add_action('memberzone_after_registration_form', function() {
echo '<p class="memberzone-form-footer">' . esc_html__('Thank you for registering!', 'memberzone') . '</p>';
});
Add filter and action registration
add_filter('memberzone_registration_username', function($username) {
return strtoupper($username); // Example: Convert username to uppercase
});
add_action('memberzone_after_user_registration', function($user_id, $membership_level) {
// Custom code, like sending a welcome email
wp_mail(get_userdata($user_id)->user_email, 'Welcome!', 'Thank you for registering.');
}, 10, 2);