woocommerce_after_dashboard_status_widget

ACTION woocommerce\includes\admin\class-wc-admin-dashboard.php (ligne 264) github
Filter to change the first argument passed to the `woocommerce_after_dashboard_status_widget` action. Please note that this filter is mainly for backward compatibility with the legacy reports. It's not recommended to use this filter as it will soon be deprecated along with the retiring of the legacy reports.

Paramètres

Entrée :
$reports
Sortie :
N/A

Utilisation

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

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

Actualités

Chargement des actualités...