woocommerce_json_search_found_customers

woocommerce_json_search_found_customers

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_json_search_found_customers') is found 2 times:

  • /includes/admin/meta-boxes/class-wc-meta-box-order-data.php line 386
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
                 *
                 * @param array @user_info An array containing one item with the name and email of the user currently selected as the customer for the order.
                 */
                ?>
                <option value="<?php echo esc_attr( $user_id ); ?>" selected="selected"><?php echo esc_html( htmlspecialchars( wp_kses_post( current( apply_filters( 'woocommerce_json_search_found_customers', array( $user_string ) ) ) ) ) ); ?></option>
                <?php // phpcs:enable WooCommerce.Commenting.CommentHooks.MissingHookComment ?>
            </select>
            <!--/email_off-->
        </p>
        <?php do_action( 'woocommerce_admin_order_data_after_order_details', $order ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment ?>
    </div>
  • /includes/class-wc-ajax.php line 1793
    1789
    1790
    1791
    1792
    1793
    1794
    1795
    1796
    1797
    1798
    1799
                $customer->get_email()
            );
        }
     
        wp_send_json( apply_filters( 'woocommerce_json_search_found_customers', $found_customers ) );
    }
     
    /**
     * Search for categories and return json.
     */
    public static function json_search_categories() {