learndash-assignment-list-columns

apply_filters( 'learndash-assignment-list-columns',  array $columns )

Filters assignments listing columns. Used to add new or remove existing columns in the assignment table.


Description #


Parameters #

$columns

(array) An Array of columns keyed with column CSS class and label as value


Source #

File: themes/ld30/templates/assignment/listing.php


Examples #

 <?php
/**
 * Example usage for learndash-assignment-list-columns filter.
 */
add_filter(
	'learndash-assignment-list-columns',
	function( $columns ) {
		// May add any custom logic using $columns.

		// Always return $columns.
		return $columns;
	}
);