apply_filters( 'learndash_profile_course_info_atts', array $attributes, WP_User $user )
Filters profile course info attributes.
Description #
Parameters #
Source #
File: includes/admin/class-learndash-admin-user-profile-edit.php
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_profile_course_info_atts filter.
*/
add_filter(
'learndash_profile_course_info_atts',
function( $attributes, $user ) {
// May add any custom logic using $attributes, $user.
// Always return $attributes.
return $attributes;
},
10,
2
);
Changelog #
| Version | Description |
|---|---|
| 2.5.5 | Introduced. |