Skip to content

Instantly share code, notes, and snippets.

@reformatco
Created September 29, 2023 13:45
Show Gist options
  • Save reformatco/e796c0fc86ce93d834ea9e28ef89420c to your computer and use it in GitHub Desktop.
Save reformatco/e796c0fc86ce93d834ea9e28ef89420c to your computer and use it in GitHub Desktop.

Revisions

  1. reformatco created this gist Sep 29, 2023.
    8 changes: 8 additions & 0 deletions remove-tec-filters.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    // You can save original $wp_filter
    remove_action('parse_query', 'Tribe__Events__Query::parse_query', 50);
    remove_action('parse_query', 'Tribe__Events__Query::filter_and_order_by_date', 1000);

    // Run your query
    $query = new WP Query()

    // Reinstate the parse_query filters here in case you need it later on