rep__get_event_archive_page_url()
This function is used to retrieve the URL of an event archive page based on the provided event type. It allows you to specify the event type, and then it returns the corresponding archive page URL.
Namespace
REP_Malcolm
Parameters
$type
string
Search type.
Return
string
Search filter url.
Source
File: \includes\rep-helper-functions.php
function rep__get_event_archive_page_url( $type ){
$type = strtolower( $type );
$archive_pages = lp__get_field_value( REP__PREFIX.'_listing_event_archive_pages', 'option' );
$page = lp__array_key_value( "{$type}_page", $archive_pages );
if( ! $page ){
$page = lp__array_key_value( "default_page", $archive_pages );
}
if( $page ) $page = get_permalink( $page );
return $page;
}