Last active
October 5, 2015 05:47
-
-
Save afragen/2758724 to your computer and use it in GitHub Desktop.
Truncate the details parameter of Google calendar link to 1000 characters.
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
<? | |
//Add the following to your theme's functions.php | |
add_filter( 'tribe_google_calendar_parameters', 'tribe_google_calendar_link_modify', 10, 2 ); | |
function tribe_google_calendar_link_modify( $params ) { | |
$mod = substr($params['details'], 0, 1000); | |
unset($params['details']); | |
$params['details'] = $mod; | |
return $params; | |
} | |
?> |
Updated to work with ECP 3.2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This hack is no longer required. It is written in to ECP 2.0.7.