messages_template_view_message

  • apply_filters( 'messages_template_view_message', 'members/single/home' ) )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-actions.php :: Trac Source Line: 58
      		'slug'            => 'view',
      		'parent_url'      => trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() ),
      		'parent_slug'     => bp_get_messages_slug(),
      		'screen_function' => true,
      		'position'        => 40,
      		'user_has_access' => bp_is_my_profile(),
      		'link'            => bp_displayed_user_domain() . bp_get_messages_slug() . '/view/' . (int) $thread_id
      	) );
      
      	bp_core_load_template( apply_filters( 'messages_template_view_message', 'members/single/home' ) );
      }
      add_action( 'bp_actions', 'messages_action_view_message' );
      
      function messages_action_delete_message() {
      	global $thread_id;
      
      	if ( !bp_is_messages_component() || bp_is_current_action( 'notices' ) || !bp_is_action_variable( 'delete', 0 ) )
      		return false;
      
      	$thread_id = bp_action_variable( 1 );
      

Comments are closed.