post_type !== 'wpvr_item' ) { return; } $post_type = $tour->post_type; $post_type_object = get_post_type_object( $post_type ); $post_type_name = $post_type_object ? strtolower( $post_type_object->labels->singular_name ) : 'post'; $this->track_aha_moment( 'tour_embadded', array( 'post_type' => $post_type_name, 'tour_id' => $tour_id, 'title' => $tour->post_title, 'render_type' => $args, 'timestamp' => current_time( 'c' ), ) ); } }