Function Reference: geodir_event_category_term_link


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


(string) (required) The term permalink.

Default: None
(int) (required) The term id.

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

Default: None

Return Values

  • 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;