Viewing 1 replies (of 1 total)
  • Plugin Author ishitaka

    (@ishitaka)

    Hi,

    xo_event_calendar_events filter hooks allow you to change the event data in the calendar.
    See this page for more information on how to use the xo_event_calendar_events filter hook.

    Example: In the functions.php of the theme,

    function my_xo_event_calendar_events( $events, $args, $month_index ) {
    	if ( 'xo-event-calendar-1' === $args['id'] ) {
    		foreach( $events as &$event) {
    			$cats = get_the_terms( $event['post']->ID, 'xo_event_cat' );
    			if ( $cats ) {
    				$event['permalink'] = get_term_link( $cats[0] );
    			}
    		}
    	}
    	return $events;
    }
    add_filter( 'xo_event_calendar_events', 'my_xo_event_calendar_events', 10, 3 );
Viewing 1 replies (of 1 total)
  • The topic ‘Make Event Links go to Category’ is closed to new replies.