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.

Parameters Parameters


(array) (Required) The array of standard WP columns

Top ↑

Return Return

(array) The updated array of columns.

Top ↑

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;

Top ↑

User Contributed Notes User Contributed Notes

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