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.
$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.
// 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é');
}
Chargement des actualités...