woocommerce_json_search_limit

woocommerce_json_search_limit

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_json_search_limit') is found 2 times:

  • /includes/class-wc-ajax.php line 1636
     
    		if ( ! empty( $_GET['limit'] ) ) {
    			$limit = absint( $_GET['limit'] );
    		} else {
    			$limit = absint( apply_filters( 'woocommerce_json_search_limit', 30 ) );
    		}
    
    		$include_ids = ! empty( $_GET['include'] ) ? array_map( 'absint', (array) wp_unslash( $_GET['include'] ) ) : array();
    		$exclude_ids = ! empty( $_GET['exclude'] ) ? array_map( 'absint', (array) wp_unslash( $_GET['exclude'] ) ) : array();
    
    		$exclude_types = array();
    
  • /includes/class-wc-ajax.php line 1711
     
    		if ( ! empty( $_GET['limit'] ) ) {
    			$limit = absint( $_GET['limit'] );
    		} else {
    			$limit = absint( apply_filters( 'woocommerce_json_search_limit', 30 ) );
    		}
    
    		$include_ids = ! empty( $_GET['include'] ) ? array_map( 'absint', (array) wp_unslash( $_GET['include'] ) ) : array();
    		$exclude_ids = ! empty( $_GET['exclude'] ) ? array_map( 'absint', (array) wp_unslash( $_GET['exclude'] ) ) : array();
    
    		$term       = isset( $_GET['term'] ) ? (string) wc_clean( wp_unslash( $_GET['term'] ) ) : '';