Only enable S3 in Video Upload

Home Forums Legacy Support Support queries How-to & Troubleshooting Only enable S3 in Video Upload

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #206805
    creativedev
    Spectator
    I came across this forum post, where the admin wanted to only allow instructors to upload to S3. There's a suggested code fix in the post. Where would that code fix be added to? Original Post: https://wplms.io/support/forums/topic/disable-everything-but-s3/
    #206869
    logan
    Member

    Hello,

    Please paste this snippets in your wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php 

    Or in

    Please add this code in your wplms-customizer.php file in wplms customizer plugin by using your FTP/SFTP/cpanel:

    Fix :

    add_action('wp_footer',function(){

    if(is_page(vibe_get_option('create_course'))){

    ?>

    <style>

    .media-menu > a {

    display: none;

    }

    .media-menu > div ~a+a {

    display: block;

    }

    </style>

    <script>

    jQuery(document).ready(function($){

    jQuery('.media-menu-item:visible').first().trigger('click');

    });

    </script>

    <?php

    }

    });

    Result : http://prntscr.com/myr2da

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Only enable S3 in Video Upload’ is closed to new replies.