Provider::filter_add_base_slugs( array $bases = array() )

Add the required bases for the Pro Views


Parameters

$bases

(array) (Optional) Bases that are already set

Default value: array()


Top ↑

Return

(array) The modified version of the array of bases


Top ↑

Source

File: src/Tribe/Rewrite/Provider.php

	public function filter_add_base_slugs( $bases = [] ) {

		// Support the original and translated forms for added robustness
		$bases['all']   = [ 'all', tribe( 'events-pro.main' )->all_slug ];
		$bases['week']  = [ 'week', tribe( 'events-pro.main' )->weekSlug ];
		$bases['photo'] = [ 'photo', tribe( 'events-pro.main' )->photoSlug ];

		return $bases;
	}

Top ↑

Changelog

Changelog
Version Description
4.7.5 Introduced.