Skip to content

Commit

Permalink
Fixes gocodebox#29
Browse files Browse the repository at this point in the history
  • Loading branch information
actuallyakash committed Apr 7, 2023
1 parent 08c4812 commit 4111d51
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions inc/labs/class.llms.lab.beaver.builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Lets you do all them sweet BeaverBuilder things to Courses, Lessons, and Memberships.
*
* @since 1.3.0
* @version 1.6.0
* @version [version]
*/

defined( 'ABSPATH' ) || exit;
Expand Down Expand Up @@ -59,7 +59,7 @@ public function is_enabled() {
*/
protected function init() {

// prevent uneditable llms post types from being enabled for page building.
// Prevent uneditable llms post types from being enabled for page building.
add_filter( 'fl_builder_admin_settings_post_types', array( $this, 'remove_uneditable_post_types' ) );

add_action( 'init', array( $this, 'load_modules' ) );
Expand All @@ -71,11 +71,11 @@ protected function init() {

add_filter( 'fl_builder_is_node_visible', array( $this, 'is_node_visible' ), 10, 2 );

// // hide editors when builder is enabled for a post.
// Hide editors when builder is enabled for a post.
add_filter( 'llms_metabox_fields_lifterlms_course_options', array( $this, 'mod_metabox_fields' ) );
add_filter( 'llms_metabox_fields_lifterlms_membership', array( $this, 'mod_metabox_fields' ) );

// dolla dolla billz yall.
// Dolla dolla billz yall.
add_filter( 'fl_builder_upgrade_url', array( $this, 'upgrade_url' ) );

// LifterLMS Private Areas.
Expand Down Expand Up @@ -489,6 +489,7 @@ public function mod_page_restrictions( $results, $post_id ) {
* Prevent page building of LifterLMS Post Types that can't actually be pagebuilt despite what the settings may assume.
*
* @since 1.5.0
* @since [version] Removed unset parameters for `llms_certificate` and `llms_my_certificate` from the filter.
*
* @param array $post_types Post type objects as an array.
* @return array
Expand All @@ -497,8 +498,6 @@ public function remove_uneditable_post_types( $post_types ) {

unset( $post_types['llms_quiz'] );
unset( $post_types['llms_question'] );
unset( $post_types['llms_certificate'] );
unset( $post_types['llms_my_certificate'] );

return $post_types;

Expand Down

0 comments on commit 4111d51

Please sign in to comment.