WordPress.org

Forums

WP-Members: Membership Framework
[resolved] Using checkboxes (3 posts)

  1. chadamas
    Member
    Posted 2 years ago #

    I've been working on (and searching for) a solution to this question for hours now, and it just occurred to me that maybe WP-Members isn't set up to utilize checkboxes as arrays. Is it possible to do so? What I'm trying to do is add "category" fields to the user data and have multiple checkboxes allowable in each one.

    For example, I tried creating two new checkbox fields and assigned them with unique labels and values but with the same Option Name. This properly displays the fields, but if I select them both, only the last one is saved. Is it possible to do what I'm attempting? I'm open to suggestions here, even if I need to dig around in the code a bit. Any nudge in the right direction would be very much appreciated.

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    That isn't supported directly in the plugin. However, you can get pretty advanced in bending the plugin in different areas using the various filter hooks - in this case, you could explore the wpmem_register_form filter (see a full list of filter and action hooks here: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/).

  3. chadamas
    Member
    Posted 2 years ago #

    Thank you very much for the response, Chad.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic