PHP code example of weprovide / aviate-wordpress
1. Go to this page and download the library: Download weprovide/aviate-wordpress 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/ */
weprovide / aviate-wordpress example snippets
namespace YourVendor\YourTheme;
function aviateFiles($files, $aviate) {
if($aviate->isDevelopment()) {
$files['js'][] = $aviate->getDevServerUrl('your-file.js');
return $files;
}
$files['js'][] = $aviate->getProductionUrl('your-file.js');
return $files;
}
add_filter('aviate_files', __NAMESPACE__.'\\aviateFiles', 10, 2);