Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created August 21, 2013 21:05
Show Gist options
  • Save pippinsplugins/6300295 to your computer and use it in GitHub Desktop.
Save pippinsplugins/6300295 to your computer and use it in GitHub Desktop.
Modify the way event links are displayed on the calendar for Sugar Event Calendar
function pw_sc_event_link( $link, $id, $size ) {
if ( $size == 'small' ) {
$link = '<a href="'. get_permalink( $id ) .'" title="' . esc_html( get_the_title( $id ) ) . '">&bull;</a>';
} else {
$link = '<a href="'. get_permalink( $id ) .'">'. esc_html( get_the_title( $id ) ) .'</a><br/>';
}
return $link;
}
add_filter( 'sc_event_calendar_link', 'pw_sc_event_link' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment