LLMS_Integration_BBPress::handle_course_forum_restriction( array $restriction )

Handle course forum restrictions Add a notice and redirect to the course


Description Description


Parameters Parameters

$restriction

(array) (Required) restriction results from llms_page_restricted()


Top ↑

Return Return

(void)


Top ↑

Source Source

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

	public function handle_course_forum_restriction( $restriction ) {
		llms_add_notice( apply_filters( 'llms_bbp_course_forum_restriction_msg', __( 'You must be enrolled in this course to access the course forum', 'lifterlms' ), $restriction ), 'error' );
		wp_redirect( get_permalink( $restriction['restriction_id'] ) );
		exit;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.12.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: