woocommerce_admin_order_data_after_order_details

ACTION woocommerce\includes\admin\meta-boxes\class-wc-meta-box-order-data.php (ligne 415) 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 :
$order
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

// Ajouter une fonction au hook action 'woocommerce_admin_order_data_after_order_details'
add_action('woocommerce_admin_order_data_after_order_details', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($order) {
    // Votre code ici
    error_log('Hook woocommerce_admin_order_data_after_order_details déclenché');
}

Actualités

Chargement des actualités...