I tried bellow code:
function bp_displayed_user_id() {
$theUserID = bp_get_member_user_id();
echo "MemberID: " . $theUserID;
}
add_action( 'bp_directory_members_item', 'bp_displayed_user_id' );
But it didnot to work.
Your code looks good. Which file are you putting it in?
Edit: 2nd thoughts, you may need to rename the function. Try giving it a prefix. For example:
function my_bp_displayed_user_id() {
$theUserID = bp_get_member_user_id();
echo "MemberID: " . $theUserID;
}
add_action( 'bp_directory_members_item', 'my_bp_displayed_user_id' );
I putting it in /plugin/bp-custom.php
it is working
Thanks pro man
Hi Henry Wright
Other problem.
How to translate word: I am a to other languge?
//members page fields
add_action('after_setup_theme','kleo_my_member_data');
function kleo_my_member_data()
{
global $kleo_config;
//this is the details field, right now it take the "About me" field content
$kleo_config['bp_members_details_field'] = 'About me';
//this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there
$kleo_config['bp_members_loop_meta'] = array(
'I am a',
);
}