swift_performance_handle_upload

Filter is used for imitate default WordPress handle upload for image files what Swift Performance creates for Youtube Smart Embed

Parameters

$path

string, contains the full path for the image file


Return

string


Example

// Do stuff for newly uploaded image files
add_filter('swift_performance_handle_upload', function($path){
 // do things with the uploaded file
 return $path;
});