Skip to content

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

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

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.

Sorry, something went wrong.

dominiquemariano and others added 7 commits January 19, 2024 21:02

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Initial commit. Needs re-testing and modification.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed the bugs on code.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
…chase.
*/
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.

None yet

3 participants