WordPress.org

Support

Support » Plugins and Hacks » Events Manager » [Resolved] Change required fields in registration form

[Resolved] Change required fields in registration form

Viewing 2 replies - 1 through 2 (of 2 total)
  • agelonwl

    @angelonwl

    Plugin Author Marcus

    @netweblogic

    the Pro add-on makes this pretty easy with our form builder, but to make it required using only the main plugin requires some PHP.

    I’ll write this out here but it’s off the top of my head, so there may be mistakes, but it’s a general gist of it:

    function my_em_validation($result, $EM_Booking){
      if(!empty($_REQUEST['dbem_phone'])){
        $EM_Booking->add_error('enter a phone number');
        $result = false;
      }
      return $result;
    }
    add_filter('em_booking_validate','my_em_validation');
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Change required fields in registration form’ is closed to new replies.
Skip to toolbar