Hey,
sorry I’m not a programmer, so I tried this:
add_filter( 'wpmem_register_form', 'input_replace' );
function input_replace( $form )
{
$old = array( 'test','text', '' );
$new = array( 'test','radio', 'sim' );
$form = str_replace( $old, $new, $form );
return $form;
}
and this:
add_filter( 'wpmem_register_form', 'input_replace' );
function input_replace{
$old = '<input type="text" class="textbox" value="" id="test" name="test">';
$new = '<<input type="radio" name="test" value="yes">yes<input type="radio" name="test" value="no">no';
$form = str_replace( $old, $new, $form );
return $form;
}
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
but doesn’t work…
Can you help me, please?