Reply To: Is it possible in Buddy Press to give only permission to delete private message
Hi,
That is a paid plugin so I do not have access to the code.
Can I put your above code in plugin’s directory’s path “\wp-content\plugins\youzer\includes\public\templates\members\single\messages” single.php file ?
If the file is there then try to find this code <a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>" title="<?php esc_attr_e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a>
and then replace it with this code:
<?php if(current_user_can('manage_options')){?>
<a>" title="<?php esc_attr_e( "Delete Message", "buddypress" ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a>
<?php }?>
Thanks