Skip to:
Content

BuddyPress.org

Changeset 10564


Ignore:
Timestamp:
02/08/2016 06:00:55 PM (9 years ago)
Author:
dcavins
Message:

Messages: Add hooks in loop and single templates.

Add an action hook to the thread options cell in
the messages loop template and another following
the "delete" link in a single message's
#message-recipients block.

Fixes #6775.

Location:
trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/messages-loop.php

    r10562 r10564  
    132132                             |
    133133                            <a class="delete" href="<?php bp_message_thread_delete_link(); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a>
     134
     135                            <?php
     136
     137                            /**
     138                             * Fires after the thread options links for each message in the messages loop list.
     139                             *
     140                             * @since 2.5.0
     141                             */
     142                            do_action( 'bp_messages_thread_options' ); ?>
    134143                        </td>
    135144                    </tr>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/single.php

    r10562 r10564  
    4343
    4444            <a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>" title="<?php esc_attr_e( "Delete Conversation", 'buddypress' ); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a>
     45
     46            <?php
     47           
     48            /**
     49             * Fires after the action links in the header of a single message thread.
     50             *
     51             * @since 2.5.0
     52             */
     53            do_action( 'bp_after_message_thread_recipients' ); ?>
    4554        </p>
    4655
Note: See TracChangeset for help on using the changeset viewer.