public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/admin/functions.php
/**
 * Update the user summary columns to show our custom fields, and hide cluttering ones.
 *
 * @since 1.0.0
 *
 * @param Array $column_headers The list of columns to show (before showing them).
 *
 * @return Array The actual list of columns to show.
 */
Update the user summary columns to show our custom fields, and hide cluttering ones.

@param Array $column_headers The list of columns to show (before showing them).

@return Array The actual list of columns to show.
Update the user summary columns to show our custom fields and hide cluttering ones . @param Array $column_headers The list of columns to show ( before showing them ) . @return Array The actual list of columns to show .
function WPCW_users_manageColumns( $column_headers ) {
	unset( $column_headers['posts'] );
	unset( $column_headers['name'] );
	unset( $column_headers['email'] );
	unset( $column_headers['role'] );
	$column_headers['wpcw_col_user_details'] = __( 'Details', 'wp-courseware' );
	$column_headers['wpcw_col_training_courses']        = __( 'Training Course Progress', 'wp-courseware' );
	$column_headers['wpcw_col_training_courses_access'] = __( 'Actions', 'wp-courseware' );
	return $column_headers;
}
function WPCW_users_manageColumns ( $ column_headers ) { unset ( $ column_headers [ 'posts' ] ) ; unset ( $ column_headers [ 'name' ] ) ; unset ( $ column_headers [ 'email' ] ) ; unset ( $ column_headers [ 'role' ] ) ; $ column_headers [ 'wpcw_col_user_details' ] = __ ( 'Details' , 'wp-courseware' ) ; $ column_headers [ 'wpcw_col_training_courses' ] = __ ( 'Training Course Progress' , 'wp-courseware' ) ; $ column_headers [ 'wpcw_col_training_courses_access' ] = __ ( 'Actions' , 'wp-courseware' ) ; return $ column_headers ; }
Update the user summary columns to show our custom fields, and hide cluttering ones.
Update the user summary columns to show our custom fields and hide cluttering ones .
// Remove list of posts // Remove name and email address (so that we can combine it) // Add new name column // Training Course Allocations