ASTRA_Ext_WooCommerce_Markup::get_toolbar_elements_processed_array()
Get priority for shop toolbar elements.
Description
Cause: 2 elements will keep at left & 2 are right.
Return
(int) $priority
Source
File: addons/woocommerce/classes/class-astra-ext-woocommerce-markup.php
public static function get_toolbar_elements_processed_array() {
$processed_array = array();
$shop_toolbar_strcture = self::get_shop_toolbar_option();
foreach ( $shop_toolbar_strcture as $key => $value ) {
$priority = $key + 15;
$processed_array[ $value ] = $priority;
}
$defaults = array(
'filters' => false,
'results' => false,
'sorting' => false,
'easy_view' => false,
);
return wp_parse_args( $processed_array, $defaults );
}
Expand full source code Collapse full source code View on Trac