Astra_Ext_Transparent_Header_Markup::transparent_logo_image_sizes( array $sizes, array $metadata )
Add logo image sizes in filter.
Description
Parameters
- $sizes
-
(array) (Required) Sizes.
- $metadata
-
(array) (Required) attachment data.
Return
(array)
Source
File: inc/addons/transparent-header/classes/class-astra-ext-transparent-header-markup.php
public function transparent_logo_image_sizes( $sizes, $metadata ) { $logo_width = astra_get_option( 'transparent-header-logo-width' ); if ( is_array( $sizes ) && '' != $logo_width['desktop'] ) { $max_value = max( $logo_width ); $sizes['ast-transparent-logo-size'] = array( 'width' => (int) $max_value, 'height' => 0, 'crop' => false, ); } return $sizes; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |