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


Top ↑

Return Return

(array) Actions with 'view' link added to them


Top ↑

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 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.