WC_Brands::add_brand_products_shortcode_atts
Adds the "brand" attribute to the list of WooCommerce products shortcode attributes.
Метод класса: WC_Brands{}
Хуков нет.
Возвращает
Массив. The output array of shortcode attributes.
Использование
$result = WC_Brands::add_brand_products_shortcode_atts( $out, $pairs, $atts, $shortcode );
- $out(массив) (обязательный)
- The output array of shortcode attributes.
- $pairs(массив) (обязательный)
- The supported attributes and their defaults.
- $atts(массив) (обязательный)
- The user defined shortcode attributes.
- $shortcode(строка) (обязательный)
- The shortcode name.
Код WC_Brands::add_brand_products_shortcode_atts() WC Brands::add brand products shortcode atts WC 10.5.0
public static function add_brand_products_shortcode_atts( $out, $pairs, $atts, $shortcode ) {
$out['brand'] = array_key_exists( 'brand', $atts ) ? $atts['brand'] : '';
return $out;
}