woocommerce_analytics_excluded_order_statuses

woocommerce_analytics_excluded_order_statuses

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_analytics_excluded_order_statuses') is found 1 times:

  • /src/Admin/API/Reports/DataStore.php line 794
    	 */
    	protected static function get_excluded_report_order_statuses() {
    		$excluded_statuses = \WC_Admin_Settings::get_option( 'woocommerce_excluded_report_order_statuses', array( 'pending', 'failed', 'cancelled' ) );
    		$excluded_statuses = array_merge( array( 'auto-draft', 'trash' ), array_map( 'esc_sql', $excluded_statuses ) );
    		return apply_filters( 'woocommerce_analytics_excluded_order_statuses', $excluded_statuses );
    	}
    
    	/**
    	 * Maps order status provided by the user to the one used in the database.
    	 *
    	 * @param string $status Order status.
    

See this hook used in plugins: