PHP code example of frozzare / wp-glide
1. Go to this page and download the library: Download frozzare/wp-glide library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
frozzare / wp-glide example snippets
add_filter( 'pre_option_upload_url_path', function () {
return site_url( '/img' );
} );
'source' => WP_CONTENT_DIR . '/uploads',
'cache' => WP_CONTENT_DIR . '/cache/glide',
'base_url' => '/img/'