• Resolved astridman

    (@astridman)


    Is there a way to insert/create section headers (text, horizontal rules or otherwise) into WP-Member registration forms?

    I have rather long registration form and need to break it up for organization and visual ease.

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes – once the form is created, the wpmem_register_form filter is applied.

    <?php
    add_filter( 'wpmem_register_form', 'my_register_form_filter' );
    function my_register_form_filter( $form )
    {
    	/**
    	 * The registration form is brought in with $form
    	 * You can append to it or filter it
    	 */
    
    	return $form;
    }
    ?>

    I would use something like str_replace to search for the html of the field right before or right after where you want to place a rule and then add the rule to it. Something like:

    $form = str_replace( $orig-html-of-field-before, $html-with-rule-added, $form );

    Thread Starter astridman

    (@astridman)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP-Members Registration Form – section headers’ is closed to new replies.