Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@barryhughes
Created February 5, 2018 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barryhughes/4c6a8e6935583090c3cc1ddd052adf72 to your computer and use it in GitHub Desktop.
Save barryhughes/4c6a8e6935583090c3cc1ddd052adf72 to your computer and use it in GitHub Desktop.
Stop The Events Calendar from adding "noindex,follow" tags to event views. Use with caution/read up on soft 404s before using.
<?php
/**
* Plugin name: Remove Events No Index Tag
* Description: Prevents The Events Calendar from telling search engines not to index various views
*/
apply_filters( 'tribe_events_add_no_index_meta', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment