Make WordPress Core

Changeset 59878


Ignore:
Timestamp:
02/27/2025 12:07:07 AM (21 months ago)
Author:
audrasjb
Message:

Comments: Remove bulk action dropdown depending on user caps.

This changeset introduces the manage_users-network_custom_column filter that fires for each custom column in the Network Users list table. This is an override hook for manage_users_custom_column which was already filtering each custom column in all Users list tables.

Props lenasterg, realloc, audrasjb.
Fixes #43318.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r58745 r59878  
    468468
    469469                /** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
    470                 echo apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID );
     470                $column_output = apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID );
     471
     472                /**
     473                 * Filters the display output of custom columns in the Network Users list table.
     474                 *
     475                 * @since 6.8.0
     476                 *
     477                 * @param string $output      Custom column output. Default empty.
     478                 * @param string $column_name Name of the custom column.
     479                 * @param int    $user_id     ID of the currently-listed user.
     480                 */
     481                echo apply_filters( 'manage_users-network_custom_column', $column_output, $column_name, $user->ID );
    471482        }
    472483
Note: See TracChangeset for help on using the changeset viewer.