Forum Replies Created
-
Hi @r-a-y,
Thank you for your replay. I faced same issue in bulk message delete. Please help me to resolve the issue.
Hello,
Anybody please do reply to me.
Thanks @djpaul.
Hi,
I have the same problem. Throughout the website, we make use of unique display_name. I didn’t get the real hook or filter to manage this situation. Please check the link below.
Thanks @danbp.
@vn213322com, yes almost same as Facebook. You have any idea about that?Hi danbp,
Thank you for your replay.
My target is, show display_name all over the site.
example:- while we are using @mention plugin, drop down user list shows the display_name. when we select any name, then the @display_name need to show on post field and also @display_name shows the activity display loops.Got the solution.
using
bp_groups_posted_update
instead ofbp_activity_posted_update
.function add_meta_to_activity( $content, $user_id, $activity_id ) { bp_activity_update_meta( $activity_id, ‘option1’, $_POST[‘option1’] ); } add_action( ‘bp_groups_posted_update’, ‘add_meta_to_activity’, 10, 4 );
Hi @danbp,
Thank you for your reply.
I wrote bp-custom.php inside the folder( wp-content/plugins/).I would link to add extra field inside the file( buddypress/bp-themes/bp-default/activity/post-form.php) and need to insert that value on the table (wp_bp_activity_meta). I wrote the function for this purpose. Unfortunately its not working. please help.
function add_meta_to_activity( $content, $user_id, $activity_id ) { bp_activity_update_meta( $activity_id, 'option1', $_POST['option1'] ); } add_action( 'bp_activity_posted_update', 'add_meta_to_activity', 10, 3 );