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 |
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
# put the sql file you want to import into the /app folder then open an SSH session | |
# change to app directory | |
cd app | |
# -f is to force the process to continue and may not be necessary | |
mysql -u root -proot -f local < new_db.sql |