Hooks::filter_system_information( array $info = array() )

Add the views v2 status in a more prominent way in the Troubleshooting page system info panel.


Parameters #

$info

(array) (Optional) Existing information that will be displayed.

Default value: array()


Top ↑

Return #

(array)


Top ↑

Source #

File: src/Tribe/Views/V2/Hooks.php

	public function filter_system_information( array $info = [] ) {
		$views_v2_status = [
			'Views V2 Status' => tribe_events_views_v2_is_enabled() ? esc_html__( 'Enabled', 'the-events-calendar' ) : esc_html__( 'Disabled', 'the-events-calendar' ),
		];
		return \Tribe__Main::array_insert_before_key( 'Settings', $info, $views_v2_status );
	}

Top ↑

Changelog #

Changelog
Version Description
5.12.4 Introduced.