woocommerce_upsells_total filter-hookWC 1.0

Usage

add_filter( 'woocommerce_upsells_total', 'wp_kama_woocommerce_upsells_total_filter' );

/**
 * Function for `woocommerce_upsells_total` filter-hook.
 * 
 * @param  $args[posts_per_page] 
 *
 * @return 
 */
function wp_kama_woocommerce_upsells_total_filter( $args[posts_per_page] ){

	// filter...
	return $args[posts_per_page];
}
$args[posts_per_page]
-

Where the hook is called

woocommerce_upsell_display()
woocommerce_upsells_total
woocommerce/includes/wc-template-functions.php 2083
$limit   = apply_filters( 'woocommerce_upsells_total', isset( $args['posts_per_page'] ) ? $args['posts_per_page'] : $limit );

Where the hook is used in WooCommerce

Usage not found.