Function Reference: geodir_event_category_term_link

Summary

Add the query vars to the term link to retrive today & upcoming events.

Parameters

$term_link
(string) (required) The term permalink.

Default: None
$cat->term_id
(int) (required) The term id.

Default: None
$post_type
(string) (required) WordPress post type.

Default: None

Return Values

(string)
  • The category term link.

Change Log

Since: 1.1.9

Source File

geodir_event_category_term_link() is located in geodir_event_manager/gdevents_functions.php [Line: 1960]

Source Code

function geodir_event_category_term_link( $term_link, $term_id, $post_type ) {
	if ( $post_type != 'gd_event' ) {
		return $term_link;
	}
	
	$term_link = add_query_arg( array( 'etype' => 'upcoming' ), $term_link );

	return $term_link;
}