bp_get_message_notice_delete_link

  • apply_filters( 'bp_get_message_notice_delete_link', wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/notices/delete/' . $messages_template->thread->id, 'messages_delete_thread' ) )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 472
      		return apply_filters( 'bp_get_message_notice_text', $messages_template->thread->message );
      	}
      
      function bp_message_notice_delete_link() {
      	echo bp_get_message_notice_delete_link();
      }
      	function bp_get_message_notice_delete_link() {
      		global $messages_template, $bp;
      
      		return apply_filters( 'bp_get_message_notice_delete_link', wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/notices/delete/' . $messages_template->thread->id, 'messages_delete_thread' ) );
      	}
      
      function bp_message_activate_deactivate_link() {
      	echo bp_get_message_activate_deactivate_link();
      }
      	function bp_get_message_activate_deactivate_link() {
      		global $messages_template, $bp;
      
      		if ( 1 == (int)$messages_template->thread->is_active ) {
      			$link = wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/notices/deactivate/' . $messages_template->thread->id, 'messages_deactivate_notice' );
      

Comments are closed.