Elementor Code Reference
  • Developers
  • Code Reference
  • Docs
  • Blog
  • Account
  • Developers
  • Code Reference
  • Docs
  • Blog
  • Account

bfi_image_downsize

bfi_image_downsize( $out,  $id,  $size )


Source

includes/libraries/bfi-thumb/bfi-thumb.php

	function bfi_image_downsize( $out, $id, $size ) {
		if ( ! is_array( $size ) ) {
			return false;
		}
		if ( ! array_key_exists( 'bfi_thumb', $size ) ) {
			return false;
		}
		if ( empty( $size['bfi_thumb'] ) ) {
			return false;
		}

		$img_url = wp_get_attachment_url( $id );

		$params = $size;
		$params['width'] = $size[0];
		$params['height'] = $size[1];

		$resized_img_url = bfi_thumb( $img_url, $params );

		return array( $resized_img_url, $size[0], $size[1], false );
	}

Uses

  • includes/libraries/bfi-thumb/bfi-thumb.php: bfi_thumb()
Elementor Code Reference
  • Code Reference
  • Elementor Hooks
    • PHP Hooks
    • JS Hooks
  • Elementor Classes
  • Elementor Methods
  • Elementor Functions
Developer Resources

Visit the official Developer Resources to learn how to extend Elementor.

Get Involved

Visit Elementor GitHub repository to contribute code or suggest new ideas.

  • Contact
  • About Us
  • Terms of Service
  • Privacy Policy
  • Template Library
  • Features
  • Theme Builder
  • Get Pro
Theme by Pojo.me
//Made in Elementor Page Builder
Enter your email and be the first to learn about new updates and features.
No thanks, I just want to download Elementor