Created
November 2, 2017 21:30
-
-
Save andrasguseo/525d3603696904ba33ce8c1834bf76b0 to your computer and use it in GitHub Desktop.
Makes the 'Merge Duplicates' button appear and stick in The Events Calendar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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