Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to get userid regardless of context


mrjarbenne
Participant

@mrjarbenne

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' );
?>

Skip to toolbar