Skip to content

Instantly share code, notes, and snippets.

@barryhughes
Created November 2, 2017 21:10
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/d4d7771932090c1c6ddd4bfa278be532 to your computer and use it in GitHub Desktop.
Save barryhughes/d4d7771932090c1c6ddd4bfa278be532 to your computer and use it in GitHub Desktop.
Force the merge duplicate venues and organizers button to appear (The Events Calendar 4.6: Events > Settings > General screen)
<?php
/**
* Force the merge duplicate venue/organizer button to appear.
*
* Written for TEC 4.6.3, may or may not work with other versions.
*
* @param mixed $value
* @param mixed $default
* @param string $key
*
* @return mixed
*/
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