Filter to customize the display of the currently selected customer for an order in the order edit page. This is the same filter used in the ajax call for customer search in the same metabox.
array( $user_string
Sortie :
@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.
// Modifier la valeur avec le filtre 'woocommerce_json_search_found_customers'
add_filter('woocommerce_json_search_found_customers', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array( $user_string) {
// Modifier la valeur
return array( $user_string;
}
Chargement des actualités...