bp_get_send_private_message_link

  • apply_filters( 'bp_get_send_private_message_link', wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/compose/?r=' . bp_core_get_username( $bp->displayed_user->id, $bp->displayed_user->userdata->user_nicename, $b

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 564
      function bp_send_private_message_link() {
      	echo bp_get_send_private_message_link();
      }
      	function bp_get_send_private_message_link() {
      		global $bp;
      
      		if ( bp_is_my_profile() || !is_user_logged_in() )
      			return false;
      
      		return apply_filters( 'bp_get_send_private_message_link', wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/compose/?r=' . bp_core_get_username( $bp->displayed_user->id, $bp->displayed_user->userdata->user_nicename, $bp->displayed_user->userdata->user_login ) ) );
      	}
      
      /**
       * bp_send_private_message_button()
       *
       * Explicitly named function to avoid confusion with public messages.
       *
       * @uses bp_get_send_message_button()
       * @since 1.2.6
       */
      

Comments are closed.