woocommerce_brands_settings_fields filter-hookWC 9.4.0

Filter Brands settings.

Usage

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(array)
Brands settings.

Changelog

Since 9.4.0 Introduced.

Where the hook is called

WC_Brands_Admin::init_form_fields()
woocommerce_brands_settings_fields
woocommerce/includes/admin/class-wc-admin-brands.php 220-243
$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',
		),
	)
);

Where the hook is used in WooCommerce

Usage not found.