Enough people loved this gist, so it's now a Github repository!
⭐ Please use the "The Events Calendar Reset" on Github going forward. ⭐
Enough people loved this gist, so it's now a Github repository!
⭐ Please use the "The Events Calendar Reset" on Github going forward. ⭐
<?php | |
// Return a custom order of the default blocks on an event. | |
// to change the order of the blocks, arrange the lines the blocks are added to the array. | |
// To remove a block from being added by default, comment out the line for the block. | |
add_filter( 'tribe_events_editor_default_template', function( $template ){ | |
// initiate our array | |
$template = array(); |
<?php | |
/** | |
* Removes time from List View | |
*/ | |
function tribe_remove_time_list_view( $settings ) { | |
if( ! tribe_is_upcoming() && ! tribe_is_past() ) return $settings; | |
$settings[ 'time' ] = false; |