woocommerce_admin_terms_metabox_datalimit filter-hookWC 8.8.0

Filter the length (number of terms) rendered in the list.

Usage

add_filter( 'woocommerce_admin_terms_metabox_datalimit', 'wp_kama_woocommerce_admin_terms_metabox_datalimit_filter' );

/**
 * Function for `woocommerce_admin_terms_metabox_datalimit` filter-hook.
 * 
 * @param int $term_limit The maximum number of terms to display in the list.
 *
 * @return int
 */
function wp_kama_woocommerce_admin_terms_metabox_datalimit_filter( $term_limit ){

	// filter...
	return $term_limit;
}
$term_limit(int)
The maximum number of terms to display in the list.

Changelog

Since 8.8.0 Introduced.

Where the hook is called

In file: /includes/admin/meta-boxes/views/html-product-attribute-inner.php
woocommerce_admin_terms_metabox_datalimit
woocommerce/includes/admin/meta-boxes/views/html-product-attribute-inner.php 46
$term_limit = absint( apply_filters( 'woocommerce_admin_terms_metabox_datalimit', 50 ) );

Where the hook is used in WooCommerce

Usage not found.