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.5.1

apply_filters('woocommerce_json_search_found_customers') is found 2 times:

  • /includes/admin/meta-boxes/class-wc-meta-box-order-data.php line 385
    								 *
    								 * @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 1791
    				$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() {