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