woocommerce_max_terms_displayed_in_attributes_page filter-hookWC 6.9.0

Filters the maximum number of terms that will be displayed for each taxonomy in the Attributes page.

Usage

add_filter( 'woocommerce_max_terms_displayed_in_attributes_page', 'wp_kama_woocommerce_max_terms_displayed_in_attributes_page_filter' );

/**
 * Function for `woocommerce_max_terms_displayed_in_attributes_page` filter-hook.
 * 
 * @param int $100 @default_max_terms_to_display Default value.
 *
 * @return int
 */
function wp_kama_woocommerce_max_terms_displayed_in_attributes_page_filter( $100 ){

	// filter...
	return $100;
}
$100(int)
@default_max_terms_to_display Default value.

Changelog

Since 6.9.0 Introduced.

Where the hook is called

WC_Admin_Attributes::add_attribute()
woocommerce_max_terms_displayed_in_attributes_page
woocommerce/includes/admin/class-wc-admin-attributes.php 329
$max_terms_to_display = apply_filters( 'woocommerce_max_terms_displayed_in_attributes_page', 100 );

Where the hook is used in WooCommerce

Usage not found.