Skip to content

Instantly share code, notes, and snippets.

@barryhughes
Forked from anonymous/gist:6601306
Last active December 29, 2015 15:49
Show Gist options
  • Save barryhughes/7693185 to your computer and use it in GitHub Desktop.
Save barryhughes/7693185 to your computer and use it in GitHub Desktop.
add_filter( 'tribe-events-bar-filters', 'setup_my_field_in_bar', 1, 1 );
function setup_my_field_in_bar( $filters ) {
$filters['tribe-bar-my-field'] = array(
'name' => 'tribe-bar-my-field',
'caption' => 'My Field',
'html' => '<input type="text" name="tribe-bar-my-field" id="tribe-bar-my-field">'
);
return $filters;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment