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 #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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; } );
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |