Hooks::filter_handled_rewrite_rules( $handled_rewrite_rules = array(),  $all_rewrite_rules = array() )

Filters the handled rewrite rules, the one used to parse plain links into permalinks, to add the ones managed by PRO.

See also


Top ↑

Parameters

$all_rules

(<span class="TribeEventsProViewsV2array">TribeEventsProViewsV2array) (Required) All the rewrite rules handled by WordPress.

$handled_rules

(<span class="TribeEventsProViewsV2array">TribeEventsProViewsV2array) (Required) The handled rules, as produced by The Events Calendar base code; in the same format used by WordPress to store and manage rewrite rules.


Top ↑

Return

(TribeEventsProViewsV2array<string,string>) The filtered rewrite rules, including the ones handled by Events PRO; in the same format used by WordPress to handle rewrite rules.


Top ↑

Source

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

	public function filter_handled_rewrite_rules( array $handled_rewrite_rules = [], array $all_rewrite_rules = [] ) {
		if ( empty( $all_rewrite_rules ) ) {
			return $handled_rewrite_rules;
		}

		return $this->container->make( Rewrite::class )
		                       ->filter_handled_rewrite_rules( $handled_rewrite_rules, $all_rewrite_rules );
	}

Top ↑

Changelog

Changelog
Version Description
5.0.1 Introduced.