wp/wp-admin/includes/class-wp-ms-users-list-table.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
   465 	public function column_default( $item, $column_name ) {
   465 	public function column_default( $item, $column_name ) {
   466 		// Restores the more descriptive, specific name for use within this method.
   466 		// Restores the more descriptive, specific name for use within this method.
   467 		$user = $item;
   467 		$user = $item;
   468 
   468 
   469 		/** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
   469 		/** 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 	}
   471 
   472 
   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 );
       
   482 	}
       
   483 
       
   484 	/**
       
   485 	 * Generates the list table rows.
       
   486 	 *
       
   487 	 * @since 3.1.0
       
   488 	 */
   473 	public function display_rows() {
   489 	public function display_rows() {
   474 		foreach ( $this->items as $user ) {
   490 		foreach ( $this->items as $user ) {
   475 			$class = '';
   491 			$class = '';
   476 
   492 
   477 			$status_list = array(
   493 			$status_list = array(