add_filter( 'wpmem_register_form_rows', 'prefix_profile', 9999, 2 );
function prefix_profile( $rows, $adminprofile$toggle ){
if( 'edit' == $toggle ){
foreach( $rows as $row_item ){
$rows[$row_item['meta']]['field'] = preg_replace( '/<input(.*) value="(.*)" class="textbox"(.*)\/>/', '<p class="noinput">$2 </p>', $row_item['field'] );
$rows[$row_item['meta']]['label'] = str_replace( '*', '', $row_item['label'] );
}
}
return $rows;
}
Edited to make them inactive for the update profile only. Register new user will still work as usual.
Jeff Mattson
- 307
- 2
- 10