woocommerce_json_search_limit

woocommerce_json_search_limit

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_json_search_limit') is found 2 times:

  • /includes/class-wc-ajax.php line 1638
    1635
    1636
    1637
    1638
    1639
    1640
    1641
    1642
    1643
    1644
    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 1713
    1710
    1711
    1712
    1713
    1714
    1715
    1716
    1717
    1718
    1719
    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'] ) ) : '';