inspirebook_cover_image_url

This filter will get the cover image from amazon s3 bucket.

/**
 * rtamazon_inspirebook_cover_image_url		Fetch cover image from s3bucket.
 * 						This function is "Inspirebook" theme specific
 * @param  url 	$url 	Original url
 * @return url       	S3 bucket url
 */
function rtamazon_inspirebook_cover_image_url( $url ) {
	if ( class_exists( 'RTAWSS3_Class' ) ) {
		// New image url from AWS server
		$cover_image_aws = rtamazon_get_aws_url( $url );
		$cover_image_aws = ( ! empty( $cover_image_aws ) ) ? $cover_image_aws : $url;
		$url = $cover_image_aws;
	}
	return $url;
}
add_filter( 'inspirebook_cover_image_url', 'rtamazon_inspirebook_cover_image_url' );