WC_Helper::get_filters()public staticWC 1.0

Get available subscriptions filters.

{} It's a method of the class: WC_Helper{}

No Hooks.

Return

Array. An array of filter keys and labels.

Usage

$result = WC_Helper::get_filters();

Code of WC_Helper::get_filters() WC 6.6.1

public static function get_filters() {
	$filters = array(
		'all'              => __( 'All', 'woocommerce' ),
		'active'           => __( 'Active', 'woocommerce' ),
		'inactive'         => __( 'Inactive', 'woocommerce' ),
		'installed'        => __( 'Installed', 'woocommerce' ),
		'update-available' => __( 'Update Available', 'woocommerce' ),
		'expiring'         => __( 'Expiring Soon', 'woocommerce' ),
		'expired'          => __( 'Expired', 'woocommerce' ),
		'download'         => __( 'Download', 'woocommerce' ),
	);

	return $filters;
}