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()
Return Return
(void)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.12.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: