芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/the-events-calendar/src/Tribe/JSON_LD/Organizer.php
false ] ) { $data = parent::get_data( $post, $args ); // If we have an Empty data we just skip if ( empty( $data ) ) { return []; } // Fetch first key $post_id = key( $data ); // Fetch first Value $data = reset( $data ); $data->telephone = tribe_get_organizer_phone( $post_id ); $data->email = tribe_get_organizer_email( $post_id ); $data->url = tribe_get_organizer_website_url( $post_id ); $data->sameAs = tribe_get_organizer_website_url( $post_id ); $data = $this->apply_object_data_filter( $data, $args, $post ); return [ $post_id => $data ]; } /** * Get a link to the event * * @since 4.5.10 * * @param int|WP_Post $post The Post Object or ID * * @return false|string Link to the event or false */ protected function get_link( $post ) { // @todo [BTRIA-591]: Move this logic to Pro once #33734 is handled. if ( class_exists( 'Tribe__Events__Pro__Main' ) ) { $link = tribe_get_organizer_link( $post, false ); } else { $link = false; } return $link; } }