PHP code example of helsingborg-stad / s3-local-index
1. Go to this page and download the library: Download helsingborg-stad/s3-local-index 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/ */
helsingborg-stad / s3-local-index example snippets
// Enable/disable the plugin
add_filter('S3_Local_Index/Config/IsEnabled', '__return_false');
// Set CLI command priority (default: 10)
add_filter('S3_Local_Index/Config/GetCliPriority', function() {
return 15;
});
// Set plugin initialization priority (default: 20)
add_filter('S3_Local_Index/Config/GetPluginPriority', function() {
return 25;
});
// Set custom cache directory (default: temp directory with unique site identifier)
add_filter('S3_Local_Index/Config/GetCacheDirectory', function() {
return '/path/to/custom/cache/directory';
});