This file contains hidden or 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
| a#new_searchicon {display:none;} | |
| .content ul {list-style:disc;padding-left:15px;} | |
| .content ol {list-style:decimal;padding-left:15px;} | |
| @media only screen and (max-width: 576px) { |
This file contains hidden or 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
| // Limit media library access | |
| add_filter( 'ajax_query_attachments_args', 'wpb_show_current_user_attachments' ); | |
| function wpb_show_current_user_attachments( $query ) { | |
| $user_id = get_current_user_id(); | |
| if ( $user_id && !current_user_can('activate_plugins') && !current_user_can('edit_others_posts | |
| ') ) { | |
| $query['author'] = $user_id; | |
| } |
This file contains hidden or 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 | |
| /** | |
| * Ajax functions for Course Module | |
| * | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) exit; | |
| class BP_Course_Ajax{ |
This file contains hidden or 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
| add_action('wplms_before_single_assignment','wplms_check_wplms_assignment_submission2',10); | |
| function wplms_check_wplms_assignment_submission2(){ | |
| if(is_user_logged_in()){ | |
| $user_id = get_current_user_ID(); | |
| $assignment_id = get_the_ID(); | |
| $status = get_post_meta($assignment_id,$user_id,true); |
NewerOlder