Skip to content

Instantly share code, notes, and snippets.

@ggwicz ggwicz/snippet.php
Last active Aug 29, 2016

What would you like to do?
Plugin Name: Snippet — Move the Attendees List to Top of Posts
Plugin URI:
Description: This is my quick snippet to move the attendees lists from the bottom of posts to the top.
Version: 1.0.0
Author: George
Author URI:
License: GPLv2 or later
add_action( 'wp_head', 'tribe_relocate_attendees_list' );
function tribe_relocate_attendees_list() {
$attendees_list = Tribe__Tickets_Plus__Attendees_List::instance();
remove_action( 'tribe_events_single_event_after_the_meta', array( $attendees_list, 'render' ), 4 );
if ( ! $attendees_list::is_hidden_on( get_the_ID() ) ) {
add_action( 'tribe_events_single_event_before_the_meta', array( $attendees_list, 'render' ), 4 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.