Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get message for user receive


  • durvilchat
    Participant

    @durvilchat

    Hi please what function buddypress can display the list of messages received by a user. I use the function below but it only works for the sender. Thank you

    $aParams ['box']      = $this->box;
    		$aParams ['per_page'] = $this->per_page;
    		$aParams ['page']     = $page;
    		$aParams ['max']      = $this->limit;
    		$aParams ['user_id']  = get_current_user_id();
     
    		//add_filter( 'bp_loggedin_user_id', 'aheadzen_bp_loggedin_user_id_function' );
    		global $messages_template, $thread_template;
    		$counter = 0;
    		if ( bp_has_message_threads( bp_ajax_querystring( 'messages' ) ) ) {
    			while ( bp_message_threads() ) {
    
    				bp_message_thread();}}
  • You must be logged in to reply to this topic.
Skip to toolbar