Skip to content

Commit

Permalink
Add "MemberPress Courses" plugin custom filter to allow styles to load
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Jul 24, 2023
1 parent 5bd1c8a commit 61c2c3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions includes/plugin-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ private function define_public_hooks()
$plugin_public,
'enqueue_scripts'
);

// Allow plugin styles to be enqueued in "MemberPress Courses" course pages
// https://docs.memberpress.com/article/381-how-to-edit-lessons-in-classroom-mode-with-a-page-builder
add_filter('mpcs_classroom_style_handles', function ($allowed_handles) {
$allowed_handles[] = 'protected-video-protected-video-style';
return $allowed_handles;
});
}

/**
Expand Down

0 comments on commit 61c2c3d

Please sign in to comment.