Tribe__Rewrite::filter_generate( WP_Rewrite $wp_rewrite )
Generate the Rewrite Rules
Contents
Parameters
- $wp_rewrite
-
(WP_Rewrite) (Required) WordPress Rewrite that will be modified, pass it by reference (&$wp_rewrite)
Source
File: src/Tribe/Rewrite.php
public function filter_generate( WP_Rewrite $wp_rewrite ) {
// Gets the rewrite bases and completes any other required setup work
$this->setup( $wp_rewrite );
/**
* Use this to change the Tribe__Events__Rewrite instance before new rules
* are committed.
*
* Should be used when you want to add more rewrite rules without having to
* deal with the array merge, noting that rules for The Events Calendar are
* themselves added via this hook (default priority).
*
* @var Tribe__Events__Rewrite $rewrite
*
* @deprecated 4.3 Use `tribe_pre_rewrite`
*/
do_action( 'tribe_events_pre_rewrite', $this );
/**
* Use this to change the Tribe__Rewrite instance before new rules
* are committed.
*
* Should be used when you want to add more rewrite rules without having to
* deal with the array merge, noting that rules for The Events Calendar are
* themselves added via this hook (default priority).
*
* @var Tribe__Rewrite $rewrite
*/
do_action( 'tribe_pre_rewrite', $this );
}