woocommerce_admin_reports

FILTER woocommerce\src\Admin\API\Reports\Controller.php (ligne 115) github
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/...'.

Paramètres

Entrée :
$reports
Sortie :
@param array $endpoints The list of allowed reports..

Utilisation

// 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;
}

Actualités

Chargement des actualités...