Skip to:
Content

BuddyPress.org

Changeset 9840


Ignore:
Timestamp:
05/06/2015 05:00:09 AM (10 years ago)
Author:
r-a-y
Message:

bp-legacy: Add missing 'bp_messages_inbox_list_header' hook.

This is to mirror the 'bp_messages_inbox_list_item' hook to allow plugins
the ability to add an extra table column in the messages-loop.php template.

Props tw2113.

Fixes #6328.

File:
1 edited

Legend:

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

    r9819 r9840  
    4949                    <th scope="col" class="thread-from"><?php _e( 'From', 'buddypress' ); ?></th>
    5050                    <th scope="col" class="thread-info"><?php _e( 'Subject', 'buddypress' ); ?></th>
     51
     52                    <?php
     53
     54                    /**
     55                     * Fires inside the messages box table header to add a new column.
     56                     *
     57                     * This is to primarily add a <th> cell to the messages box table header. Use
     58                     * the related 'bp_messages_inbox_list_item' hook to add a <td> cell.
     59                     *
     60                     * @since BuddyPress (2.3.0)
     61                     */
     62                    do_action( 'bp_messages_inbox_list_header' ); ?>
     63
    5164                    <th scope="col" class="thread-options"><?php _e( 'Actions', 'buddypress' ); ?></th>
    5265                </tr>
     
    8699
    87100                        /**
    88                          * Fires inside the display of a member message inbox list item.
     101                         * Fires inside the messages box table row to add a new column.
     102                         *
     103                         * This is to primarily add a <td> cell to the message box table. Use the
     104                         * related 'bp_messages_inbox_list_header' hook to add a <th> header cell.
    89105                         *
    90106                         * @since BuddyPress (1.1.0)
Note: See TracChangeset for help on using the changeset viewer.