<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[BuddyPress][9487] trunk/src/bp-groups/bp-groups-admin.php: Adds hooks documentation to bp-groups-admin.php.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://buddypress.trac.wordpress.org/changeset/9487">9487</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://buddypress.trac.wordpress.org/changeset/9487","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>tw2113</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-02-17 05:16:34 +0000 (Tue, 17 Feb 2015)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Adds hooks documentation to bp-groups-admin.php.
See <a href="http://buddypress.trac.wordpress.org/ticket/5943">#5943</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcbpgroupsbpgroupsadminphp">trunk/src/bp-groups/bp-groups-admin.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcbpgroupsbpgroupsadminphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-groups/bp-groups-admin.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-groups/bp-groups-admin.php 2015-02-15 01:02:23 UTC (rev 9486)
+++ trunk/src/bp-groups/bp-groups-admin.php 2015-02-17 05:16:34 UTC (rev 9487)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -81,7 +81,13 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $doaction = bp_admin_list_table_current_bulk_action();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Call an action for plugins to hook in early
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Fires at top of groups admin page.
+ *
+ * @since BuddyPress (1.7.0)
+ *
+ * @param string $doaction Current $_GET action being performed in admin screen.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> do_action( 'bp_groups_admin_load', $doaction );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Edit screen
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -126,6 +132,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> add_meta_box( 'bp_group_add_members', _x( 'Add New Members', 'group admin edit screen', 'buddypress' ), 'bp_groups_admin_edit_metabox_add_new_members', get_current_screen()->id, 'normal', 'core' );
</span><span class="cx" style="display: block; padding: 0 10px"> add_meta_box( 'bp_group_members', _x( 'Manage Members', 'group admin edit screen', 'buddypress' ), 'bp_groups_admin_edit_metabox_members', get_current_screen()->id, 'normal', 'core' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Fires after the registration of all of the default group meta boxes.
+ *
+ * @since BuddyPress (1.7.0)
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> do_action( 'bp_groups_admin_meta_boxes' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Enqueue javascripts
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -225,11 +236,24 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Enable discussion forum
</span><span class="cx" style="display: block; padding: 0 10px"> $enable_forum = ( isset( $_POST['group-show-forum'] ) ) ? 1 : 0;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Privacy setting
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Filters the allowed status values for the group.
+ *
+ * @since BuddyPress (1.0.2)
+ *
+ * @param array $value Array of allowed group statuses.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> $allowed_status = apply_filters( 'groups_allowed_status', array( 'public', 'private', 'hidden' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $status = ( in_array( $_POST['group-status'], (array) $allowed_status ) ) ? $_POST['group-status'] : 'public';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Invite status
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Filters the allowed invite status values for the group.
+ *
+ * @since BuddyPress (1.5.0)
+ *
+ * @param array $value Array of allowed invite statuses.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> $allowed_invite_status = apply_filters( 'groups_allowed_invite_status', array( 'members', 'mods', 'admins' ) );
</span><span class="cx" style="display: block; padding: 0 10px"> $invite_status = in_array( $_POST['group-invite-status'], (array) $allowed_invite_status ) ? $_POST['group-invite-status'] : 'members';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -347,7 +371,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Call actions for plugins to do something before we redirect
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Fires before redirect so plugins can do something first on save action.
+ *
+ * @since BuddyPress (1.6.0)
+ *
+ * @param int $group_id ID of the group being edited.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> do_action( 'bp_group_admin_edit_after', $group_id );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Create the redirect URL
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -380,7 +410,13 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $redirect_to = add_query_arg( 'error_modified', $error_modified, $redirect_to );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Redirect
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Filters the URL to redirect to after successfully editing a group.
+ *
+ * @since BuddyPress (1.7.0)
+ *
+ * @param string $redirect_to URL to redirect user to.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> wp_redirect( apply_filters( 'bp_group_admin_edit_redirect', $redirect_to ) );
</span><span class="cx" style="display: block; padding: 0 10px"> exit;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -509,13 +545,23 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Get the group from the database
</span><span class="cx" style="display: block; padding: 0 10px"> $group = groups_get_group( 'group_id=' . $_GET['gid'] );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /** This filter is documented in bp-groups/bp-groups-template.php */
</ins><span class="cx" style="display: block; padding: 0 10px"> $group_name = isset( $group->name ) ? apply_filters( 'bp_get_group_name', $group->name ) : '';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Construct URL for form
</span><span class="cx" style="display: block; padding: 0 10px"> $form_url = remove_query_arg( array( 'action', 'deleted', 'no_admins', 'error', 'error_new', 'success_new', 'error_modified', 'success_modified' ), $_SERVER['REQUEST_URI'] );
</span><span class="cx" style="display: block; padding: 0 10px"> $form_url = add_query_arg( 'action', 'save', $form_url );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Call an action for plugins to modify the group before we display the edit form
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Fires before the display of the edit form.
+ *
+ * Useful for plugins to modify the group before display.
+ *
+ * @since BuddyPress (1.7.0)
+ *
+ * @param BP_Groups_Group Instance of the current group being edited. Passed by reference.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> do_action_ref_array( 'bp_groups_admin_edit', array( &$group ) ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="wrap">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -661,7 +707,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Prepare the group items for display
</span><span class="cx" style="display: block; padding: 0 10px"> $bp_groups_list_table->prepare_items();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Call an action for plugins to modify the messages before we display the edit form
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Fires before the display of messages for the edit form.
+ *
+ * Useful for plugins to modify the messages before display.
+ *
+ * @since BuddyPress (1.7.0)
+ *
+ * @param array $messages Array of messages to be displayed.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> do_action( 'bp_groups_admin_index', $messages ); ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="wrap">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -875,7 +929,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( has_filter( 'bp_groups_admin_manage_member_row' ) ) : ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <tr>
</span><span class="cx" style="display: block; padding: 0 10px"> <td colspan="3">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php do_action( 'bp_groups_admin_manage_member_row', $type_user->ID, $item ); ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php
+
+ /**
+ * Fires after the listing of a single row for members in a group on the group edit screen.
+ *
+ * @since BuddyPress (1.8.0)
+ *
+ * @param int $ID ID of the user being rendered.
+ * @param BP_Groups_Group $item Object for the current group.
+ */
+ do_action( 'bp_groups_admin_manage_member_row', $type_user->ID, $item ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> </td>
</span><span class="cx" style="display: block; padding: 0 10px"> </tr>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1275,6 +1339,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $row_classes = array( 'alternate', 'odd' );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Filters the classes applied to a single row in the groups list table.
+ *
+ * @since BuddyPress (1.9.0)
+ *
+ * @param array $row_classes Array of classes to apply to the row.
+ * @param string $value ID of the current group being displayed.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> $row_classes = apply_filters( 'bp_groups_admin_row_class', $row_classes, $item['id'] );
</span><span class="cx" style="display: block; padding: 0 10px"> $row_class = ' class="' . implode( ' ', $row_classes ) . '"';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1299,7 +1371,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <li class="private"><a href="<?php echo esc_attr( esc_url( add_query_arg( 'group_status', 'private', $url_base ) ) ); ?>" class="<?php if ( 'private' == $this->view ) echo 'current'; ?>"><?php printf( _n( 'Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>', $this->group_counts['private'], 'buddypress' ), number_format_i18n( $this->group_counts['private'] ) ); ?></a> |</li>
</span><span class="cx" style="display: block; padding: 0 10px"> <li class="hidden"><a href="<?php echo esc_attr( esc_url( add_query_arg( 'group_status', 'hidden', $url_base ) ) ); ?>" class="<?php if ( 'hidden' == $this->view ) echo 'current'; ?>"><?php printf( _n( 'Hidden <span class="count">(%s)</span>', 'Hidden <span class="count">(%s)</span>', $this->group_counts['hidden'], 'buddypress' ), number_format_i18n( $this->group_counts['hidden'] ) ); ?></a></li>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- <?php do_action( 'bp_groups_list_table_get_views', $url_base, $this->view ); ?>
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <?php
+
+ /**
+ * Fires inside listing of views so plugins can add their own.
+ *
+ * @since BuddyPress (1.7.0)
+ *
+ * @param string $url_base Current URL base for view.
+ * @param string $view Current view being displayed.
+ */
+ do_action( 'bp_groups_list_table_get_views', $url_base, $this->view ); ?>
</ins><span class="cx" style="display: block; padding: 0 10px"> </ul>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1312,6 +1394,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array Key/value pairs for the bulk actions dropdown.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_bulk_actions() {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /**
+ * Filters the list of bulk actions to display on a single group row.
+ *
+ * @since BuddyPress (1.7.0)
+ *
+ * @param array $value Array of bulk actions to display.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> return apply_filters( 'bp_groups_list_table_get_bulk_actions', array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'delete' => __( 'Delete', 'buddypress' )
</span><span class="cx" style="display: block; padding: 0 10px"> ) );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1327,6 +1417,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @return array Array of column titles.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function get_columns() {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /**
+ * Filters the titles for the columns for the groups list table.
+ *
+ * @since BuddyPress (2.0.0)
+ *
+ * @param array $value Array of slugs and titles for the columns.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> return apply_filters( 'bp_groups_list_table_get_columns', array(
</span><span class="cx" style="display: block; padding: 0 10px"> 'cb' => '<input name type="checkbox" />',
</span><span class="cx" style="display: block; padding: 0 10px"> 'comment' => _x( 'Name', 'Groups admin Group Name column header', 'buddypress' ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1416,6 +1514,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $delete_url = wp_nonce_url( $base_url . "&action=delete", 'bp-groups-delete' );
</span><span class="cx" style="display: block; padding: 0 10px"> $edit_url = $base_url . '&action=edit';
</span><span class="cx" style="display: block; padding: 0 10px"> $view_url = bp_get_group_permalink( $item_obj );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /**
+ * Filters the group name for a group's column content.
+ *
+ * @since BuddyPress (1.7.0)
+ *
+ * @param string $value Name of the group being rendered.
+ * @param array $item Array for the current group item.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> $group_name = apply_filters_ref_array( 'bp_get_group_name', array( $item['name'] ), $item );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Rollover actions
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1429,7 +1536,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Visit
</span><span class="cx" style="display: block; padding: 0 10px"> $actions['view'] = sprintf( '<a href="%s">%s</a>', esc_url( $view_url ), __( 'View', 'buddypress' ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- // Other plugins can filter which actions are shown
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Filters the actions that will be shown for the column content.
+ *
+ * @since BuddyPress (1.7.0)
+ *
+ * @param array $value Array of actions to be displayed for the column content.
+ * @param array $item The current group item in the loop.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> $actions = apply_filters( 'bp_groups_admin_comment_row_actions', array_filter( $actions ), $item );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Get group name and avatar
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1461,6 +1575,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array Information about the current row.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_description( $item = array() ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /**
+ * Filters the markup for the Description column.
+ *
+ * @since BuddyPress (1.0.0)
+ *
+ * @param string $value Markup for the Description column.
+ * @parma array $item The current group item in the loop.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> echo apply_filters_ref_array( 'bp_get_group_description', array( $item['description'], $item ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1489,6 +1612,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> break;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Filters the markup for the Status column.
+ *
+ * @since BuddyPress (1.7.0)
+ *
+ * @param string $status_desc Markup for the Status column.
+ * @parma array $item The current group item in the loop.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> echo apply_filters_ref_array( 'bp_groups_admin_get_group_status', array( $status_desc, $item ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1501,6 +1632,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_members( $item = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $count = groups_get_groupmeta( $item['id'], 'total_member_count' );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /**
+ * Filters the markup for the number of Members column.
+ *
+ * @since BuddyPress (1.7.0)
+ *
+ * @param int $count Markup for the number of Members column.
+ * @parma array $item The current group item in the loop.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> echo apply_filters_ref_array( 'bp_groups_admin_get_group_member_count', array( (int) $count, $item ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1513,18 +1653,39 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_last_active( $item = array() ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $last_active = groups_get_groupmeta( $item['id'], 'last_activity' );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /**
+ * Filters the markup for the Last Active column.
+ *
+ * @since BuddyPress (1.7.0)
+ *
+ * @param string $last_active Markup for the Last Active column.
+ * @parma array $item The current group item in the loop.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> echo apply_filters_ref_array( 'bp_groups_admin_get_group_last_active', array( $last_active, $item ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Allow plugins to add their custom column.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * @since BuddyPress 2.0.0
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * @since BuddyPress (2.0.0)
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @param array Information about the current row.
</span><span class="cx" style="display: block; padding: 0 10px"> * @param string the column name.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ *
+ * @return string
</ins><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> public function column_default( $item = array(), $column_name = '' ) {
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /**
+ * Filters a string to allow plugins to add custom column content.
+ *
+ * @since BuddyPress (2.0.0)
+ *
+ * @param string $value Empty string.
+ * @param string $column_name Name of the column being rendered.
+ * @param array $item The current group item in the loop.
+ */
</ins><span class="cx" style="display: block; padding: 0 10px"> return apply_filters( 'bp_groups_admin_get_group_custom_column', '', $column_name, $item );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre>
</div>
</div>
</body>
</html>