Created
July 28, 2020 03:15
-
-
Save nickyoung87/8fd729b8b020755a332170119cc385c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Params | |
* Required: $post_id | |
* Optional: $user_id | |
*/ | |
$has_access = sfwd_lms_has_access( $post_id, $user_id = null ); | |
// Example usage inside a loop | |
$has_access = sfwd_lms_has_access( get_the_ID() ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment