WordPress.org

Support

Support » Plugins and Hacks » Register Plus Redux » different input key/name

different input key/name

  • hi radiok, aside from login with ajax, your plugin can also work with another plugin I have, events manager. usually recommend it to lwa users that ask, just had another play with it and love the simplicity.

    one thing I’ve done recently is move to registration bookings, and a phone is added to the user meta. problem is, the name is dbem_phone, and whilst it’ll work if we add a custom field in your plugin with that name, would be great if we could use another name instead.

    one super quick workaround would be just to add a filter to line 1655, so it’d be:

    $key = apply_filters('rpr_custom_field_key',$this->sanitizeText($v["custom_field_name"]));

    that way, I could whip up a quick search/replace function that users can adjust.

Viewing 3 replies - 1 through 3 (of 3 total)
  • lesson: test before you send. this doesn’t work, nor does search/replacing all these occurences in your script.

    any suggestion in that department is welcome. i am also considering making your additional fields optionally appear in the booking information section, which would solve this issue.

    Plugin Author radiok

    @radiok

    Marcus, the much delayed in development version of R+R has a neat feature in which you specify the meta name, so you could have a field “Enter your name:” but the database would store it as “users_name”. You see, instead of sanitizing your field name, it uses whatever you specify. This could be a really cool way to link R+R to other plugins that use meta fields. Anyway, long story short, I’ve had a major lack of interest in finishing my own code, so it’s really delayed progress. Sorry! But, yeah, that will work the way you want, whenever I finish.

    thanks for letting me know. thinking more about this, i’ll find a slighly more robust solution for the phone field. the second bit would still be possible regardless anyway

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘different input key/name’ is closed to new replies.
Skip to toolbar