Theme My Login
[resolved] make a custom user registration field REQUIRED ? (2 posts)

  1. tzeldin88
    Posted 4 years ago #

    Hi Jeff,
    How do i REQUIRE a custom user registration field?

    I have a few custom user/registration fields, which were created by another plugin, called s2Member (pro). These fields DO automatically show up in the TML Registration form, and they DO save correctly to the database.

    However they should be required fields (according to a setting in s2member), but that is not being enforced on by TML. I found a function you suggested about a year ago here ---> http://wordpress.org/support/topic/plugin-theme-my-login-require-other-information-when-registering?replies=13

    I tried using the tml_registration_errors function (and commented out the other two, since that functionality is already working for me). But when testing this by submitting the form with one of my custom fields empty, i get this php error:

    Fatal error: Call to a member function get_error_code() on a non-object in /home/kkunert/public_html/wp-ideal/wp-content/plugins/theme-my-login/includes/class-theme-my-login.php on line 1005

    Any insight here? Perhaps a simple change based on a more recent version of WP?
    I am on WP 3.2.1 and TML 6.1.4



  2. tzeldin88
    Posted 4 years ago #

    I just found a similar thread on the TML support site. Jeff's answer there worked for me.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Theme My Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic