Re: How to get userid regardless of context
Can you post this function after you get it worked out for the code-inept members of the community. I’m trying to do the same thing, in combination with this function.php line Andy posted in another thread.
<?php
function disable_name_change( $data ) {
if ( 1 == $data->field_id )
$data->field_id = false;
return $data;
}
add_action( 'xprofile_data_before_save', 'disable_name_change' );
?>