• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Filters » Multiple Selection Checkboxes

Multiple Selection Checkboxes

Chad Butler · Apr 22, 2014 ·

As of WP-Members 3.1.0, multiple selection checkbox support is an included feature in the plugin. That makes custom implementation such as described here unnecessary for most applications. I am leaving this post here however as there may continue to be users who (1) need a high level of customization that may utilize some or all of this kind of approach, and (2) for users who may not update to 3.1+ who need this support.

multi-check.fwWith the new wpmem_register_form_rows filter hook introduced in 2.9, the process of dealing with multiple selection checkboxes becomes far less complicated than previously.

The previous method involved adding each checkbox as a field, and then all of the extra code we needed to handle multiple fields as one both for storing the data, handling user updates, and also in emailing admin notifications.

But 2.9 allows us to filter the rows directly in the array of rows and insert the extra html we need for this. That means you only need to create one field in the fields manager which makes handling the data much easier on the backend.  I’ve even made the code snippets nearly cut-and-paste.  In most cases, you should only need to specify the name for the checkbox group and the labels/checked values. 

This article is only available to WP-Members Support Subscribers. If you have an existing subscription, please login below. If you do not have a current support subscription, you can purchase a support subscription here.

Already a Member? Log In Here
   
Forgot password? Click here to reset

To gain full access to WP-Members premium content, a current support subscription is required. You can purchase an annual support subscription for as little as $59, which provides you with access to priority support, a customer support forum, access to code snippets, and more.

Why wait? Choose your subscription option here.

[
Why join?]

Filters, Tips and Tricks filters, str_replace, tips, wpmem_admin_profile_field, wpmem_admin_profile_update, wpmem_register_data, wpmem_register_form_rows

Primary Sidebar

Forgot?  Register

Topics

  • Actions
  • Basics
  • Blog
  • Design
  • Download Protect
  • Filters
  • How I Did It
  • MailChimp
  • Release Announcements
  • Security
  • Shortcodes
  • Templates
  • Tips and Tricks
  • Uncategorized
  • User List
  • User Tracking
  • WooCommerce

Recent Posts

  • WP-Members User Tracking 1.4.7
  • WP-Members Security 1.6.2
  • WP-Members Security 1.6.1
  • WP-Members Security 1.6.0
  • WP-Members User List 2.1.4

Tags

actions add_action basics bug-fix css demo email filters forms free get_avatar get_currentuserinfo hooks is_user_logged_in mailchimp menus paypal pluggable-functions registration release-notes security shortcodes str_replace template_redirect the_content tips user-list wp-filters wpdb wpmem_admin_after_block_meta wpmem_admin_block_meta_save wpmem_block wpmem_login_form wpmem_login_form_rows wpmem_member_links wpmem_post_register_data wpmem_post_update_data wpmem_pre_register_data wpmem_register_data wpmem_register_form wpmem_register_form_rows wpmem_securify wpmem_sidebar_form wpmem_sidebar_status wp_mail

Forgot?  Register

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy