WC_Helper::get_filters
Get available subscriptions filters.
Метод класса: WC_Helper{}
Хуков нет.
Возвращает
Массив. An array of filter keys and labels.
Использование
$result = WC_Helper::get_filters();
Код WC_Helper::get_filters() WC Helper::get filters WC 10.4.0
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;
}