Provider::unregister()
Removes the actions and filters set by this provider.
Source
File: src/Events_Pro/Custom_Tables/V1/WP_Query/Provider.php
public function unregister() {
remove_action( 'query', [ $this, 'hydrate_provisional_post' ], 200 );
remove_action(
'tec_events_custom_tables_v1_custom_tables_query_results',
[ $this, 'hydrate_provisional_post_caches' ]
);
remove_filter( 'tec_events_custom_tables_v1_custom_tables_query_vars', [ $this, 'filter_query_vars' ] );
remove_filter( 'tec_events_custom_tables_v1_custom_tables_query_where', [ $this, 'filter_where' ] );
remove_filter( 'update_post_metadata_cache', [ $this, 'hydrate_provisional_meta_cache' ] );
remove_filter( 'get_post_metadata', [ $this, 'hydrate_cache_on_occurrence' ] );
remove_filter( 'posts_results', [ $this, 'replace_posts_results' ] );
remove_filter( 'tec_events_custom_tables_v1_occurrence_select_fields', [ $this, 'filter_occurrence_fields' ] );
remove_action(
'tec_events_custom_tables_v1_custom_tables_query_pre_get_posts',
[
$this,
'register_custom_tables_filters',
]
);
remove_filter( 'tribe_repository_events_collapse_recurring_event_instances', '__return_false' );
$condense_series_query_args = $this->container->callback( Condense_Events_Series::class, 'query_args' );
remove_filter( 'tribe_repository_events_query_args', $condense_series_query_args );
$condense_series_pre_get_posts = $this->container->callback( Condense_Events_Series::class, 'pre_get_posts' );
remove_action( 'tec_events_custom_tables_v1_custom_tables_query_pre_get_posts', $condense_series_pre_get_posts );
remove_filter( 'tec_events_custom_tables_v1_custom_tables_query_hydrate_posts', [
$this,
'hydrate_query_posts'
] );
remove_filter( 'tec_events_custom_tables_v1_query_modifier_implementations', [
$this,
'filter_query_modifier_implementations'
] );
remove_filter( 'tec_events_custom_tables_v1_query_modifier_applies_to_query', [
$this,
'filter_should_modify_query'
] );
remove_filter( 'tec_events_pro_tribe_repository_event_series_filter_override', [
$this,
'tribe_event_series_filter_override'
] );
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |