Provider::filter_add_base_slugs( array $bases = array() )
Add the required bases for the Pro Views
Contents
Parameters
- $bases
-
(array) (Optional) Bases that are already set
Default value: array()
Return
(array) The modified version of the array of bases
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;
}
Changelog
| Version | Description |
|---|---|
| 4.7.5 | Introduced. |