Skip to content

Instantly share code, notes, and snippets.

View nickyoung87's full-sized avatar

Nick Young nickyoung87

View GitHub Profile
<?php
/**
* Params
* Required: $post_id
* Optional: $user_id
*/
$has_access = sfwd_lms_has_access( $post_id, $user_id = null );
// Example usage inside a loop
# 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