woocommerce_brands_settings_fields
Filter Brands settings.
Использование
add_filter( 'woocommerce_brands_settings_fields', 'wp_kama_woocommerce_brands_settings_fields_filter' );
/**
* Function for `woocommerce_brands_settings_fields` filter-hook.
*
* @param array $settings Brands settings.
*
* @return array
*/
function wp_kama_woocommerce_brands_settings_fields_filter( $settings ){
// filter...
return $settings;
}
- $settings(массив)
- Brands settings.
Список изменений
| С версии 9.4.0 | Введена. |
Где вызывается хук
woocommerce_brands_settings_fields
woocommerce/includes/admin/class-wc-admin-brands.php 225-248
$this->settings = apply_filters( 'woocommerce_brands_settings_fields', array( array( 'name' => __( 'Brands Archives', 'woocommerce' ), 'type' => 'title', 'desc' => '', 'id' => 'brands_archives', ), array( 'name' => __( 'Show description', 'woocommerce' ), 'desc' => __( 'Choose to show the brand description on the archive page. Turn this off if you intend to use the description widget instead. Please note: this is only for themes that do not show the description.', 'woocommerce' ), 'tip' => '', 'id' => 'wc_brands_show_description', 'css' => '', 'std' => 'yes', 'type' => 'checkbox', ), array( 'type' => 'sectionend', 'id' => 'brands_archives', ), ) );