Warning: This method has been deprecated. Deprecated with no replacement. LLMS_Integration_Buddypress::endpoint_content() instead.


Callback for “Courses” profile screen.

Return Return


Top ↑

Source Source

File: includes/integrations/class.llms.integration.buddypress.php

	public function courses_screen() {

		llms_deprecated_function( 'LLMS_Integration_Buddypress::courses_screen()', '6.3.0' );

		// Prevent paginate links alteration performed in includes/functions/llms.functions.templates.dashboard.php.
		add_filter( 'llms_modify_dashboard_pagination_links_disable', '__return_true', 999 );

		// Add specific paginate links filter.
		add_filter( 'paginate_links', array( $this, 'modify_courses_paginate_links' ) );

		add_action( 'bp_template_content', 'lifterlms_template_student_dashboard_my_courses' );

		// Remove specific paginate links filter after the template has been rendered.
		add_action( 'bp_template_content', array( $this, 'remove_courses_paginate_links_filter' ), 15 );

		bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );


Top ↑

Changelog Changelog

Version Description
6.3.0 Deprecated with no replacement. LLMS_Integration_Buddypress::endpoint_content().
3.37.17 Added action and filters to fix handling pagination links mofication.
3.14.4 Unknown.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.