Browse: Home / Snippets /

ProPanel: Include admin users in display and reports

Contents


Snippet #

Important: All snippets are provided as-is without support or guarantees. These snippets are provided as guidelines for advanced users looking to customize LearnDash. For any additional help or support with these snippets, we recommend reaching out to a LearnDash Expert.

/**
 * LearnDash ProPanel - Include admin users in display and reporting
 *
 * By default admin level users are excluded from display and reporting. This
 * filter is provided to allow inclusion of those users. 
 *
 * @since 2.0
 *
 * @param bool $exclude_admin_users default value passed will be TRUE. 
 * @return bool true to exlcude, false to include.
 */
add_filter( 'ld_propanel_exclude_admin_users', function( $exclude_admin_users ) { 

	// If you want to INCLUDE admin users set the return to 'false'.
	$exclude_admin_users = false;

	return $exclude_admin_users;
} );