Skip to content
LearnDash

Developers

  • Filter By:

learndash_profile_course_info_atts

apply_filters( 'learndash_profile_course_info_atts',  array $attributes,  WP_User $user )

Filters profile course info attributes.

Contents

  • Description
    • Parameters
    • Source
    • Examples
  • Related
    • Used By

Description #


Parameters #

$attributes

(array) An array of course info attributes.

$user

(WP_User) WP_User object to be checked.


Source #

File: includes/admin/class-learndash-admin-user-profile-edit.php


Examples #

 <?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
);
 

Expand example code Copy to clipboard


Related #

Used By #

Used By
Used By Description
includes/admin/class-learndash-admin-user-profile-edit.php: Learndash_Admin_User_Profile_Edit::show_user_course_info ()

Displays users course information at bottom of profile called by show_user_profile().

Post navigation

← Previous Hook
Next Hook →

The Most Trusted Online Course Platform for WordPress.

Get Started Demo

  • Features
  • Dynamic Learning
  • Marketing and Sales
  • Integrations
  • Course Management
  • Resources
  • Blog
  • Webinars
  • Videos
  • Case Studies
  • Add-ons
  • Online Demo
  • Company
  • About LearnDash
  • Brand Assets
  • Careers
  • Affiliates
  • Privacy Policy
  • Terms and Conditions
LearnDash LearnDash® Copyright© 2012-2021. All rights reserved.
  • Twitter
  • Facebook
  • LinkedIn
  • YouTube