Astra_Ext_Sticky_Header_Markup::sticky_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: addons/sticky-header/classes/class-astra-ext-sticky-header-markup.php
public function sticky_logo_image_sizes( $sizes, $metadata ) { $logo_width = astra_get_option( 'sticky-header-logo-width' ); if ( is_array( $sizes ) && '' != $logo_width['desktop'] ) { $max_value = max( $logo_width ); $sizes['ast-sticky-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. |