BP_Activity_List_Table::row_actions( array $actions, bool $always_visible = false )
Override WP_List_Table::row_actions().
Description
Basically a duplicate of the row_actions() method, but removes the unnecessary
Parameters
- $actions
-
(array) (Required) The list of actions.
- $always_visible
-
(bool) (Optional) Whether the actions should be always visible.
Default value: false
Return
(string)
Source
File: bp-activity/classes/class-bp-activity-list-table.php
public function row_actions( $actions, $always_visible = false ) { $action_count = count( $actions ); $i = 0; if ( !$action_count ) return ''; $out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">'; foreach ( $actions as $action => $link ) { ++$i; ( $i == $action_count ) ? $sep = '' : $sep = ' | '; $out .= "<span class='$action'>$link$sep</span>"; } $out .= '</div>'; return $out; }
Changelog
Version | Description |
---|---|
BuddyPress 2.3.4 Visibility set to public for compatibility with WP < 4.0.0. | BuddyPress 2.3.4 Visibility set to public for compatibility with WP < 4.0.0. |
BuddyPress 2.3.3 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.