LLMS_Admin_Reviews::init( array $columns )
This function generates the custom column set. It takes in the array of standard columns, then modifies that set to contain the needed fields.
Contents
Parameters Parameters
- $columns
-
(array) (Required) The array of standard WP columns
Return Return
(array) The updated array of columns.
Source Source
File: includes/admin/class.llms.admin.reviews.php
public function init( $columns ) { unset( $columns['date'] ); unset( $columns['comments'] ); $columns['title'] = __( 'Review Title', 'lifterlms' ); $columns['course'] = __( 'Course Reviewed', 'lifterlms' ); $columns['author'] = __( 'Review Author', 'lifterlms' ); $columns['date'] = __( 'Review Date', 'lifterlms' ); return $columns; }
Expand full source code Collapse full source code View on GitHub