WC_Email_Customer_Abandoned_Cart_Recovery::get_active_recovery_handlerspublic staticWC 11.0.0

Currently-active known recovery handlers, keyed by plugin file path with the display name as value.

Метод класса: WC_Email_Customer_Abandoned_Cart_Recovery{}

Хуков нет.

Возвращает

Массив<Строку,. string> Map of plugin file path → display name for plugins that are active.

Использование

$result = WC_Email_Customer_Abandoned_Cart_Recovery::get_active_recovery_handlers(): array;

Список изменений

С версии 11.0.0 Введена.

Код WC_Email_Customer_Abandoned_Cart_Recovery::get_active_recovery_handlers() WC 11.0.1

public static function get_active_recovery_handlers(): array {
	if ( ! function_exists( 'is_plugin_active' ) ) {
		require_once ABSPATH . 'wp-admin/includes/plugin.php';
	}

	return array_filter(
		self::KNOWN_RECOVERY_HANDLERS,
		static fn( $name, $slug ) => is_plugin_active( $slug ),
		ARRAY_FILTER_USE_BOTH
	);
}