Skip to content

Instantly share code, notes, and snippets.

@andrasguseo
Created November 2, 2017 21:30
Show Gist options
  • Save andrasguseo/525d3603696904ba33ce8c1834bf76b0 to your computer and use it in GitHub Desktop.
Save andrasguseo/525d3603696904ba33ce8c1834bf76b0 to your computer and use it in GitHub Desktop.
Makes the 'Merge Duplicates' button appear and stick in The Events Calendar
<?php
/*
* Description: Makes the 'Merge Duplicates' button appear and stick
* under Events > Settings > General tab
*
* Plugins: The Events Calendar
* Author: Barry Hughes
* Last updated: November 2, 2017
*/
add_filter( 'tribe_get_single_option', function( $value, $default, $key ) {
return 'organizer_venue_amalgamation' === $key ? 0 : $value;
}, 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment