Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude posts given their IDs from being seen by users with given WordPress roles. #8

Open
wants to merge 7 commits into
base: trunk
Choose a base branch
from

Conversation

dominiquemariano
Copy link

Description

Exclude posts given their IDs from being seen by users with given WordPress roles.

How has this been tested?

Locally using the student roles and some posts in WordPress Dashboard > Posts.

Types of changes

Code snippet.

Checklist:

  • This PR requires and contains at least one changelog file.
  • My code has been tested.
  • My code passes all existing automated tests.
  • My code follows the LifterLMS Coding & Documentation Standards.

*/
function create_llms_group_with_admin($order_id)
{
if (class_exists('LLMS_Group') && class_exists('LLMS_Groups_Enrollment') ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not critical, but possible to add spacing before/after brackets here and elsewhere? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Review in Progress
Development

Successfully merging this pull request may close these issues.

3 participants