woocommerce_admin_reports

woocommerce_admin_reports

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_admin_reports') is found 2 times:

  • /includes/admin/class-wc-admin-reports.php line 143
    				),
    			);
    		}
    
    		$reports = apply_filters( 'woocommerce_admin_reports', $reports );
    		$reports = apply_filters( 'woocommerce_reports_charts', $reports ); // Backwards compatibility.
    
    		foreach ( $reports as $key => $report_group ) {
    			if ( isset( $reports[ $key ]['charts'] ) ) {
    				$reports[ $key ]['reports'] = $reports[ $key ]['charts'];
    			}
    
  • /src/Admin/API/Reports/Controller.php line 108
    		 * 'url' => '', and 'path' => '/wc-ext/v1/...'.
    		 *
    		 * @param array $endpoints The list of allowed reports..
    		 */
    		$reports = apply_filters( 'woocommerce_admin_reports', $reports );
    
    		foreach ( $reports as $report ) {
    			if ( empty( $report['slug'] ) ) {
    				continue;
    			}