BBP_Users_Admin::user_row_actions( array $actions = array(), WP_User $user = false )
Add a “View” link for each user
Description Description
Parameters Parameters
- $actions
-
(Optional)
Default value: array()
- $user
-
(Optional)
Default value: false
Return Return
(array) Actions with 'view' link added to them
Source Source
File: includes/admin/users.php
public function user_row_actions( $actions = array(), $user = false ) { // Reverse $actions = array_reverse( $actions ); // Add the view action link $actions['view'] = '<a href="' . esc_url( bbp_get_user_profile_url( $user->ID ) ) . '" class="bbp-user-profile-link">' . esc_html__( 'View', 'bbpress' ) . '</a>'; // Re-reverse return array_reverse( $actions ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |