get_ms_registration_form_fields

The Membership 2 get ms registration form fields function.

Description

get_ms_registration_form_fields(); 

Usage

  1. if ( !function_exists( 'get_ms_registration_form_fields' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app/template/template-tags.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = get_ms_registration_form_fields(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/app/template/template-tags.php  
  1. function get_ms_registration_form_fields() { 
  2.  
  3. $html = ''; 
  4. ob_start(); 
  5. foreach ( MS_Helper_Template::$ms_registration_form['fields'] as $field ) { 
  6. if ( is_string( $field ) ) { 
  7. MS_Helper_Html::html_element( $field ); 
  8. } elseif ( MS_Helper_Html::INPUT_TYPE_HIDDEN == $field['type'] ) { 
  9. MS_Helper_Html::html_element( $field ); 
  10. } else { 
  11. ?> 
  12. <div class="ms-form-element ms-form-element-<?php echo esc_attr( $field['id'] ); ?>"> 
  13. <?php MS_Helper_Html::html_element( $field ); ?> 
  14. </div> 
  15. <?php 
  16. $html = ob_get_contents(); 
  17. ob_end_clean(); 
  18.  
  19. return $html;