woocommerce_json_search_found_customers

FILTER woocommerce\includes\admin\meta-boxes\class-wc-meta-box-order-data.php (ligne 410) github
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.

Paramètres

Entrée :
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.

Utilisation

// 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;
}

Actualités

Chargement des actualités...