golden hour
/var/www/html/wp-content/plugins/the-events-calendar/src/functions/advanced-functions
⬆️ Go Up
Upload
File/Folder
Size
Actions
event.php
7.69 KB
Del
OK
linked-posts.php
5.57 KB
Del
OK
organizer.php
2.29 KB
Del
OK
rest-v1.php
963 B
Del
OK
venue.php
2.39 KB
Del
OK
Edit: rest-v1.php
<?php if ( ! function_exists( 'tribe_events_rest_url_prefix' ) ) { /** * Returns TEC REST API URL prefix. * * @return string TEC REST API URL prefix; default `wp-json/tec/v1`. */ function tribe_events_rest_url_prefix() { return tribe( 'tec.rest-v1.main' )->get_url_prefix(); } } if ( ! function_exists( 'tribe_events_rest_url' ) ) { /** * Retrieves the URL to a TEC REST endpoint on a site. * * Note: The returned URL is NOT escaped. * * @global WP_Rewrite $wp_rewrite * * @param string $path Optional. TEC REST route. Default '/'. * @param string $scheme Optional. Sanitization scheme. Default 'rest'. * @param int $blog_id Optional. Blog ID. Default of null returns URL for current blog. * * @return string Full URL to the endpoint. */ function tribe_events_rest_url( $path = '/', $scheme = 'rest', $blog_id = null ) { return tribe( 'tec.rest-v1.main' )->get_url( $path, $scheme, $blog_id ); } }
Save