LLMS_Integration_BBPress::configure()
Configure the integration
Return Return
(void)
Source Source
File: includes/integrations/class.llms.integration.bbpress.php
protected function configure() { $this->title = __( 'bbPress', 'lifterlms' ); $this->description = sprintf( __( 'Restrict forums and topics to memberships, add forums to courses, and %1$smore%2$s.', 'lifterlms' ), '<a href="https://lifterlms.com/docs/lifterlms-and-bbpress/" target="_blank">', '</a>' ); if ( $this->is_available() ) { // Custom engagements. add_filter( 'lifterlms_engagement_triggers', array( $this, 'register_engagement_triggers' ) ); add_action( 'bbp_new_topic', array( llms()->engagements(), 'maybe_trigger_engagement' ), 10, 4 ); add_action( 'bbp_new_reply', array( llms()->engagements(), 'maybe_trigger_engagement' ), 10, 5 ); add_filter( 'lifterlms_external_engagement_query_arguments', array( $this, 'engagement_query_args' ), 10, 3 ); // Register shortcode. add_filter( 'llms_load_shortcodes', array( $this, 'register_shortcodes' ) ); // Add memberships restriction metabox. add_filter( 'llms_membership_restricted_post_types', array( $this, 'add_membership_restrictions' ) ); // Check forum/bbp template restrictions. add_filter( 'llms_page_restricted_before_check_access', array( $this, 'restriction_checks_memberships' ), 40, 1 ); add_filter( 'llms_page_restricted_before_check_access', array( $this, 'restriction_checks_courses' ), 50, 1 ); // Add and save custom fields. add_filter( 'llms_metabox_fields_lifterlms_course_options', array( $this, 'course_settings_fields' ) ); add_action( 'llms_metabox_after_save_lifterlms-course-options', array( $this, 'save_course_settings' ) ); add_filter( 'llms_get_course_properties', array( $this, 'add_course_props' ), 10, 2 ); add_action( 'llms_content_restricted_by_bbp_course_forum', array( $this, 'handle_course_forum_restriction' ), 10, 1 ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | |
3.30.3 | Introduced. |