Filter the list of allowed reports, so that data can be loaded from third party extensions in addition to WooCommerce core. Array items should be in format of array( 'slug' => 'downloads/stats', 'description' => '', 'url' => '', and 'path' => '/wc-ext/v1/...'.
$reports
Sortie :
@param array $endpoints The list of allowed reports..
// Modifier la valeur avec le filtre 'woocommerce_admin_reports'
add_filter('woocommerce_admin_reports', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($reports) {
// Modifier la valeur
return $reports;
}
Chargement des actualités...