Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

New filter for image paths

Compare
Choose a tag to compare
@junaidbhura junaidbhura released this 27 Jun 03:09
· 22 commits to master since this release

Added a new filter fly_attached_file

More info: #33

/**
 * Fly Attached File
 *
 * @param  string $attached_file
 * @param  integer $attachment_id
 * @param  mixed $size
 * @param  boolean $crop
 * @return void
 */
function different_fly_attached_file( $attached_file, $attachment_id, $size, $crop ) {
    return '/path/to/different/file.jpg';
}
add_filter( 'fly_attached_file', 'different_fly_attached_file', 10, 4 );