learndash-profile-assignment-cols

apply_filters( 'learndash-profile-assignment-cols',  array $assignment_columns )

Filters assignment columns in user’s profile.


Description #


Parameters #

$assignment_columns

(array) An array of profile assignment column fields.


Source #

File: themes/ld30/templates/shortcodes/profile/assignments.php


Examples #

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

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